Esempio n. 1
0
 public AbstractMetaManipulate(IDbLayer dbLayer, IDbGateConfig config)
 {
     DBLayer                     = dbLayer;
     Config                      = config;
     ColumnTypeMapItems          = new List <ColumnTypeMapItem>();
     ReferentialRuleTypeMapItems = new List <ReferentialRuleTypeMapItem>();
 }
Esempio n. 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();
        }
Esempio n. 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));
            }
        }
Esempio n. 4
0
 public RetrievalOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
     : base(dbLayer, statistics, config)
 {
     _proxyGenerator = new ProxyGenerator();
 }
Esempio n. 5
0
 public DefaultDbLayer(IDbGateConfig config) : base(config)
 {
 }
Esempio n. 6
0
 public PersistRetrievalLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
 {
     _retrievalOperationLayer = new RetrievalOperationLayer(dbLayer, statistics, config);
     _persistOperationLayer   = new PersistOperationLayer(dbLayer, statistics, config);
 }
Esempio n. 7
0
 public MySqlDbLayer(IDbGateConfig config) : base(config)
 {
 }
Esempio n. 8
0
 public SqlLiteDbLayer(IDbGateConfig config) : base(config)
 {
 }
Esempio n. 9
0
 protected AbstractDbLayer(IDbGateConfig config)
 {
     Config = config;
 }
Esempio n. 10
0
 public SqlLiteMetaManipulate(IDbLayer dbLayer, IDbGateConfig config) : base(dbLayer, config)
 {
 }
Esempio n. 11
0
 public static void Init(IDbGateConfig config)
 {
     _entityInfoCache = new EntityInfoCache(config);
 }
Esempio n. 12
0
 public PersistOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
     : base(dbLayer, statistics, config)
 {
 }
Esempio n. 13
0
 protected BaseOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
 {
     DbLayer    = dbLayer;
     Statistics = statistics;
     Config     = config;
 }
Esempio n. 14
0
 public EntityInfoCache(IDbGateConfig config)
 {
     _config = config;
 }
Esempio n. 15
0
 public DefaultMetaManipulate(IDbLayer dbLayer, IDbGateConfig config) : base(dbLayer, config)
 {
 }
Esempio n. 16
0
 public SqlServerDbLayer(IDbGateConfig config) : base(config)
 {
 }
Esempio n. 17
0
 public AccessDbLayer(IDbGateConfig config) : base(config)
 {
 }
Esempio n. 18
0
 public DataMigrationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config)
 {
     _dbLayer    = dbLayer;
     _statistics = statistics;
     _config     = config;
 }