示例#1
0
 public IXapDataProvider Db(string dbEnvironment, string dbConnectionName, string tSql, string connectionString, string userName, string password)
 {
     return(XapDb.Create(XapDbConnectionContextBuilder.Create().DbConnectionContext(XapEnvironment.Instance.EnvironmentName, dbEnvironment, dbConnectionName, tSql, connectionString, userName, password)));
 }
示例#2
0
 public IXapDataProvider Db(string dbEnvironment, string dbConnectionName, string tSql)
 {
     return(XapDb.Create(XapDbConnectionContextBuilder.Create().DbConnectionContext(XapEnvironment.Instance.EnvironmentName, dbEnvironment, dbConnectionName, tSql)));
 }
示例#3
0
 public IXapDataProvider Db(IXapDbConnectionContext dbConnectionContext, IXapPasswordContext passwordContext)
 {
     dbConnectionContext.UserName = passwordContext.VaultUserId;
     dbConnectionContext.Password = passwordContext.Password;
     return(XapDb.Create(dbConnectionContext));
 }
示例#4
0
 public IXapDataProvider Db(string dbEnvironment)
 {
     return(XapDb.Create(XapDbConnectionContextBuilder.Create().DbConnectionContext(dbEnvironment)));
 }
示例#5
0
 public IXapDataProvider Db(IXapDbConnectionContext dbConnectionContext)
 {
     return(XapDb.Create(dbConnectionContext));
 }