- 增加 IUnitOfWork Orm 属性直接访问 IFreeSql CRUD 事务与工作单元一致;

This commit is contained in:
28810
2020-06-09 19:26:07 +08:00
parent 7cc3374054
commit aa187eb18a
4 changed files with 26 additions and 3 deletions

View File

@ -64,6 +64,9 @@ namespace FreeSql
Enable = true;
}
DbContextScopedFreeSql _ormScoped;
public IFreeSql Orm => _ormScoped ?? (_ormScoped = DbContextScopedFreeSql.Create(_fsql, null, () => this));
public IsolationLevel? IsolationLevel { get; set; }
public DbTransaction GetOrBeginTransaction(bool isCreate = true)