修改readme的一个错误例子

This commit is contained in:
xuejiaming 2021-11-03 10:01:01 +08:00
parent 39dbdac663
commit 006d95e073
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ var list = new List<SysUserMod>();
_defaultTableDbContext.SaveChanges(); _defaultTableDbContext.SaveChanges();
//or //or
var dbContexts = _defaultTableDbContext.BulkShardingEnumerable(list); var dbContexts = _defaultTableDbContext.BulkShardingEnumerable(list);
using (var tran = _defaultTableDbContext.BeginTransaction()) using (var tran = _defaultTableDbContext.Database.BeginTransaction())
{ {
foreach (var dataSourceMap in dbContexts) foreach (var dataSourceMap in dbContexts)
{ {