diff --git a/README.md b/README.md index 9a93004e..6183a78c 100644 --- a/README.md +++ b/README.md @@ -602,7 +602,7 @@ var list = new List(); _defaultTableDbContext.SaveChanges(); //or var dbContexts = _defaultTableDbContext.BulkShardingEnumerable(list); - using (var tran = _defaultTableDbContext.BeginTransaction()) + using (var tran = _defaultTableDbContext.Database.BeginTransaction()) { foreach (var dataSourceMap in dbContexts) {