C# 클래스 Elastacloud.AzureManagement.Fluent.Clients.SqlDatabaseClient

Constructs a SqlDatabase client used to manipulate WASD
상속: ISqlDatabaseClient
파일 보기 프로젝트 열기: azurecoder/fluent-management 1 사용 예제들

공개 메소드들

메소드 설명
AddIpsToSqlFirewallFromCloudService ( string cloudServiceName, bool removeAllOtherRules = true, DeploymentSlot slot = DeploymentSlot.Production ) : void

Adds IP addresses to the WASD firewall for a

DeleteDatabase ( string name, bool deleteServerIfLastDatabase = true ) : void

Deletes a database and also deletes the server if the database is the last one

SqlDatabaseClient ( string subscriptionId, X509Certificate2 managementCertificate, string serverName ) : System

Constructs a SqlDatabase client used to manipulate WASD

비공개 메소드들

메소드 설명
CheckLoginCredentials ( ) : void

Checks that the login credentials for the server have been set

ExecuteCommand ( SqlConnection connection, string sql ) : void

Executes a set of commands against a Sql database

ExecuteCountCommand ( SqlConnection connection, string sql ) : int

Executes a count command against a table

GetConnection ( string dbName ) : SqlConnection

Gets a connection to a Sql Database

메소드 상세

AddIpsToSqlFirewallFromCloudService() 공개 메소드

Adds IP addresses to the WASD firewall for a
public AddIpsToSqlFirewallFromCloudService ( string cloudServiceName, bool removeAllOtherRules = true, DeploymentSlot slot = DeploymentSlot.Production ) : void
cloudServiceName string
removeAllOtherRules bool
slot DeploymentSlot
리턴 void

DeleteDatabase() 공개 메소드

Deletes a database and also deletes the server if the database is the last one
public DeleteDatabase ( string name, bool deleteServerIfLastDatabase = true ) : void
name string
deleteServerIfLastDatabase bool
리턴 void

SqlDatabaseClient() 공개 메소드

Constructs a SqlDatabase client used to manipulate WASD
public SqlDatabaseClient ( string subscriptionId, X509Certificate2 managementCertificate, string serverName ) : System
subscriptionId string
managementCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
serverName string
리턴 System