mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-01 11:40:57 +08:00
Updated 事务 (markdown)
4
事务.md
4
事务.md
@@ -1,8 +1,8 @@
|
|||||||
FreeSql提供了四种数据库事务的使用方法。
|
FreeSql提供了四种数据库事务的使用方法。
|
||||||
|
|
||||||
### 指定事务
|
## 外部事务
|
||||||
|
|
||||||
CRUD 提供了 WithTransaction 指定事务对象的方法;
|
适合在外部开启事务的场景,FreeSql CRUD 提供了 WithTransaction 传入事务对象。
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
fsql.Update<xxx>()
|
fsql.Update<xxx>()
|
||||||
|
|||||||
Reference in New Issue
Block a user