mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-08 01:10:57 +08:00
update
2
分表分库.md
2
分表分库.md
@@ -35,7 +35,7 @@ var sql = fsql.Select<User>()
|
||||
- AsTable CodeFirst 会自动创建不存在的分表;
|
||||
- 不可在分表分库的实体类型中使用《延时加载》;
|
||||
|
||||
分库之后,老大难题是事务,如果使用 SqlServer 可以利用 TransactionScope 做简单的跨库事务,如下:
|
||||
SqlServer 跨库事务 可以使用 TransactionScope,如下:
|
||||
|
||||
```csharp
|
||||
var repoLog = fsql.GetRepository<Log>();
|
||||
|
||||
Reference in New Issue
Block a user