예제 #1
0
 public ShardingQueryable(IQueryable <T> source, ShardingRepository repository, string absDbName)
 {
     _source       = source;
     _absTableName = AnnotationHelper.GetDbTableName(source.ElementType);
     _absDbName    = absDbName;
     _repository   = repository;
 }
예제 #2
0
 public ShardingQueryable(IQueryable <T> source, ShardingRepository repository, string absDbName)
 {
     _source       = source;
     _absTableType = source.ElementType;
     _absTableName = _absTableType.Name;
     _absDbName    = absDbName;
     _repository   = repository;
 }