public ShardingDbContext Create(string tail)
        {
            var virtualTableConfigs      = _virtualTableManager.GetAllVirtualTables().GetVirtualTableDbContextConfigs();
            var shardingDbContextOptions = new ShardingDbContextOptions(CreateOptions(), tail, virtualTableConfigs);

            return(new ShardingDbContext(shardingDbContextOptions));
        }
Esempio n. 2
0
 public ShardingDbContext Create(ShardingDbContextOptions shardingDbContextOptions)
 {
     return(new ShardingDbContext(shardingDbContextOptions));
 }