- 增加 IUnitOfWork.States 自定义状态管理,便于扩展;

This commit is contained in:
2881099
2021-08-31 10:59:39 +08:00
parent 50a8cc2376
commit 26f2578cf6
5 changed files with 321 additions and 132 deletions

View File

@ -164,6 +164,8 @@ namespace FreeSql
public DbContext.EntityChangeReport EntityChangeReport { get; } = new DbContext.EntityChangeReport();
public Dictionary<string, object> States { get; } = new Dictionary<string, object>();
~UnitOfWork() => this.Dispose();
int _disposeCounter;
public void Dispose()