public static IDbManager CreateDbManager(string dbContext) { var dbManager = UbjectDIBindings.Resolve <IDbManager>(); dbManager.SchemaName = dbContext; return(dbManager); }
public static IDbTableManager CreateDbTableManager(IDbManager dbManager) { var dbTableManager = UbjectDIBindings.Resolve <IDbTableManager>(); dbTableManager.DbManager = dbManager; return(dbTableManager); }
public static IDbConnection CreateDbConnection(IDbManager dbManager) { var dbConnection = UbjectDIBindings.Resolve <IDbConnection>(); dbConnection.ConnectionString = dbManager.ConnectionString; return(dbConnection); }