mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-16 13:20:57 +08:00
update
@@ -250,6 +250,10 @@ uow.OnEntityChange = report => {
|
||||
public class ChangeInfo {
|
||||
public object Object { get; set; }
|
||||
public EntityChangeType Type { get; set; }
|
||||
/// <summary>
|
||||
/// Type = Update 的时候,获取更新之前的对象
|
||||
/// </summary>
|
||||
public object BeforeObject { get; set; }
|
||||
}
|
||||
public enum EntityChangeType { Insert, Update, Delete, SqlRaw }
|
||||
```
|
||||
|
||||
5
工作单元.md
5
工作单元.md
@@ -1,4 +1,3 @@
|
||||
|
||||
UnitOfWork 可将多个仓储放在一个单元管理执行,最终通用 Commit 执行所有操作,内部采用了数据库事务;
|
||||
|
||||
```csharp
|
||||
@@ -96,6 +95,10 @@ uow.OnEntityChange = report => {
|
||||
public class ChangeInfo {
|
||||
public object Object { get; set; }
|
||||
public EntityChangeType Type { get; set; }
|
||||
/// <summary>
|
||||
/// Type = Update 的时候,获取更新之前的对象
|
||||
/// </summary>
|
||||
public object BeforeObject { get; set; }
|
||||
}
|
||||
public enum EntityChangeType { Insert, Update, Delete, SqlRaw }
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user