mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 IUnitOfWork Orm 属性直接访问 IFreeSql CRUD 事务与工作单元一致;
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user