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