Пример #1
0
 public AbstractMetaManipulate(IDbLayer dbLayer, IDbGateConfig config)
 {
     DBLayer                     = dbLayer;
     Config                      = config;
     ColumnTypeMapItems          = new List <ColumnTypeMapItem>();
     ReferentialRuleTypeMapItems = new List <ReferentialRuleTypeMapItem>();
 }
Пример #2
0
        public DbGate(int dbType)
        {
            _config     = new DbGateConfig();
            _statistics = new DbGateStatistics();
            InitializeDefaults();

            IDbLayer dbLayer = LayerFactory.CreateLayer(dbType, _config);

            CacheManager.Init(_config);
            _persistRetrievalLayer = new PersistRetrievalLayer(dbLayer, _statistics, _config);
            _dataMigrationLayer    = new DataMigrationLayer(dbLayer, _statistics, _config);
            dbLayer.DataManipulate();
        }
Пример #3
0
        public static IDbLayer CreateLayer(int dbType, IDbGateConfig config)
        {
            switch (dbType)
            {
            case DefaultTransactionFactory.DbAccess:
                return(new AccessDbLayer(config));

            case DefaultTransactionFactory.DbMysql:
                return(new MySqlDbLayer(config));

            case DefaultTransactionFactory.DbSqllite:
                return(new SqlLiteDbLayer(config));

            case DefaultTransactionFactory.DbSqlServer:
                return(new SqlServerDbLayer(config));

            default:
                return(new DefaultDbLayer(config));
            }
        }
Пример #4
0
 public RetrievalOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
     : base(dbLayer, statistics, config)
 {
     _proxyGenerator = new ProxyGenerator();
 }
Пример #5
0
 public DefaultDbLayer(IDbGateConfig config) : base(config)
 {
 }
Пример #6
0
 public PersistRetrievalLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
 {
     _retrievalOperationLayer = new RetrievalOperationLayer(dbLayer, statistics, config);
     _persistOperationLayer   = new PersistOperationLayer(dbLayer, statistics, config);
 }
Пример #7
0
 public MySqlDbLayer(IDbGateConfig config) : base(config)
 {
 }
Пример #8
0
 public SqlLiteDbLayer(IDbGateConfig config) : base(config)
 {
 }
Пример #9
0
 protected AbstractDbLayer(IDbGateConfig config)
 {
     Config = config;
 }
Пример #10
0
 public SqlLiteMetaManipulate(IDbLayer dbLayer, IDbGateConfig config) : base(dbLayer, config)
 {
 }
Пример #11
0
 public static void Init(IDbGateConfig config)
 {
     _entityInfoCache = new EntityInfoCache(config);
 }
Пример #12
0
 public PersistOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
     : base(dbLayer, statistics, config)
 {
 }
Пример #13
0
 protected BaseOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
 {
     DbLayer    = dbLayer;
     Statistics = statistics;
     Config     = config;
 }
Пример #14
0
 public EntityInfoCache(IDbGateConfig config)
 {
     _config = config;
 }
Пример #15
0
 public DefaultMetaManipulate(IDbLayer dbLayer, IDbGateConfig config) : base(dbLayer, config)
 {
 }
Пример #16
0
 public SqlServerDbLayer(IDbGateConfig config) : base(config)
 {
 }
Пример #17
0
 public AccessDbLayer(IDbGateConfig config) : base(config)
 {
 }
Пример #18
0
 public DataMigrationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
 {
     _dbLayer    = dbLayer;
     _statistics = statistics;
     _config     = config;
 }