C# Класс Microsoft.Azure.Commands.Sql.Database.Services.AzureSqlDatabaseAdapter

Adapter for database operations
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetDatabase Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel
GetDatabaseExpanded Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModelExpanded
ListDatabaseActivity IEnumerable
ListDatabases ICollection
ListDatabasesExpanded ICollection
UpsertDatabase Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel

Открытые методы

Метод Описание
AzureSqlDatabaseAdapter ( Microsoft.Azure.Common.Authentication.Models.AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models

Constructs a database adapter

CreateDatabaseModelFromResponse ( string resourceGroup, string serverName, Management database ) : AzureSqlDatabaseModel

Converts the response from the service to a powershell database object

CreateExpandedDatabaseModelFromResponse ( string resourceGroup, string serverName, Management database ) : AzureSqlDatabaseModelExpanded

Converts the response from the service to a powershell database object

GetServerLocation ( string resourceGroupName, string serverName ) : string

Gets the Location of the server.

RemoveDatabase ( string resourceGroupName, string serverName, string databaseName ) : void

Deletes a database

Приватные методы

Метод Описание
GetDatabase ( string resourceGroupName, string serverName, string databaseName ) : AzureSqlDatabaseModel

Gets an Azure Sql Database by name.

GetDatabaseExpanded ( string resourceGroupName, string serverName, string databaseName ) : AzureSqlDatabaseModelExpanded

Gets an Azure Sql Database by name with additional information.

ListDatabaseActivity ( string resourceGroupName, string serverName, string elasticPoolName, string databaseName, System.Guid operationId ) : IEnumerable
ListDatabases ( string resourceGroupName, string serverName ) : ICollection

Gets a list of Azure Sql Databases.

ListDatabasesExpanded ( string resourceGroupName, string serverName ) : ICollection

Gets a list of Azure Sql Databases with additional information.

UpsertDatabase ( string resourceGroup, string serverName, AzureSqlDatabaseModel model ) : AzureSqlDatabaseModel

Creates or updates an Azure Sql Database.

Описание методов

AzureSqlDatabaseAdapter() публичный Метод

Constructs a database adapter
public AzureSqlDatabaseAdapter ( Microsoft.Azure.Common.Authentication.Models.AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models
context Microsoft.Azure.Common.Authentication.Models.AzureContext
Результат Microsoft.Azure.Commands.Common.Authentication.Models

CreateDatabaseModelFromResponse() публичный статический Метод

Converts the response from the service to a powershell database object
public static CreateDatabaseModelFromResponse ( string resourceGroup, string serverName, Management database ) : AzureSqlDatabaseModel
resourceGroup string The resource group the server is in
serverName string The name of the Azure Sql Database Server
database Management The service response
Результат Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel

CreateExpandedDatabaseModelFromResponse() публичный статический Метод

Converts the response from the service to a powershell database object
public static CreateExpandedDatabaseModelFromResponse ( string resourceGroup, string serverName, Management database ) : AzureSqlDatabaseModelExpanded
resourceGroup string The resource group the server is in
serverName string The name of the Azure Sql Database Server
database Management The service response
Результат Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModelExpanded

GetServerLocation() публичный Метод

Gets the Location of the server.
public GetServerLocation ( string resourceGroupName, string serverName ) : string
resourceGroupName string The resource group the server is in
serverName string The name of the server
Результат string

RemoveDatabase() публичный Метод

Deletes a database
public RemoveDatabase ( string resourceGroupName, string serverName, string databaseName ) : void
resourceGroupName string The resource group the server is in
serverName string The name of the Azure Sql Database Server
databaseName string The name of the Azure Sql Database to delete
Результат void