Пример #1
0
        public static IDbManager CreateDbManager(string dbContext)
        {
            var dbManager = UbjectDIBindings.Resolve <IDbManager>();

            dbManager.SchemaName = dbContext;
            return(dbManager);
        }
Пример #2
0
        public static IDbTableManager CreateDbTableManager(IDbManager dbManager)
        {
            var dbTableManager = UbjectDIBindings.Resolve <IDbTableManager>();

            dbTableManager.DbManager = dbManager;
            return(dbTableManager);
        }
Пример #3
0
        public static IDbConnection CreateDbConnection(IDbManager dbManager)
        {
            var dbConnection = UbjectDIBindings.Resolve <IDbConnection>();

            dbConnection.ConnectionString = dbManager.ConnectionString;
            return(dbConnection);
        }