public AbstractMetaManipulate(IDbLayer dbLayer, IDbGateConfig config) { DBLayer = dbLayer; Config = config; ColumnTypeMapItems = new List <ColumnTypeMapItem>(); ReferentialRuleTypeMapItems = new List <ReferentialRuleTypeMapItem>(); }
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(); }
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)); } }
public RetrievalOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config) : base(dbLayer, statistics, config) { _proxyGenerator = new ProxyGenerator(); }
public DefaultDbLayer(IDbGateConfig config) : base(config) { }
public PersistRetrievalLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config) { _retrievalOperationLayer = new RetrievalOperationLayer(dbLayer, statistics, config); _persistOperationLayer = new PersistOperationLayer(dbLayer, statistics, config); }
public MySqlDbLayer(IDbGateConfig config) : base(config) { }
public SqlLiteDbLayer(IDbGateConfig config) : base(config) { }
protected AbstractDbLayer(IDbGateConfig config) { Config = config; }
public SqlLiteMetaManipulate(IDbLayer dbLayer, IDbGateConfig config) : base(dbLayer, config) { }
public static void Init(IDbGateConfig config) { _entityInfoCache = new EntityInfoCache(config); }
public PersistOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config) : base(dbLayer, statistics, config) { }
protected BaseOperationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config) { DbLayer = dbLayer; Statistics = statistics; Config = config; }
public EntityInfoCache(IDbGateConfig config) { _config = config; }
public DefaultMetaManipulate(IDbLayer dbLayer, IDbGateConfig config) : base(dbLayer, config) { }
public SqlServerDbLayer(IDbGateConfig config) : base(config) { }
public AccessDbLayer(IDbGateConfig config) : base(config) { }
public DataMigrationLayer(IDbLayer dbLayer, IDbGateStatistics statistics, IDbGateConfig config) { _dbLayer = dbLayer; _statistics = statistics; _config = config; }