示例#1
0
 public ShardingQueryable(IQueryable <T> source, ShardingDbAccessor repository, string absDbName)
 {
     _source       = source;
     _absTableName = AnnotationHelper.GetDbTableName(source.ElementType);
     _absDbName    = absDbName;
     _repository   = repository;
 }
 public ShardingQueryable(IQueryable <T> source, ShardingDbAccessor shardingDb, IShardingConfig shardingConfig, IDbFactory dbFactory)
 {
     _source         = source;
     _absTableName   = AnnotationHelper.GetDbTableName(source.ElementType);
     _shardingConfig = shardingConfig;
     _shardingDb     = shardingDb;
     _dbFactory      = dbFactory;
 }