public MsSqlConnectionStringResolver(string serverName, string databaseName, MsSqlCredentials credentials = null)
 {
     this.ServerName        = serverName;
     this.DatabaseName      = databaseName;
     this.Credentials       = credentials;
     this.TrustedConnection = credentials == null;
 }
示例#2
0
 public MsSqlDatabase(string serverName, string databaseName, string connectionName, MsSqlCredentials credentials = null)
     : base()
 {
     ConnectionStringResolver = new MsSqlConnectionStringResolver(serverName, databaseName, credentials);
     ConnectionName           = connectionName;
     Register();
 }
示例#3
0
 public MsSqlDatabase(string serverName, string databaseName, MsSqlCredentials credentials = null)
     : this(serverName, databaseName, databaseName, credentials)
 {
 }