示例#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);
        }