mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
ISugarUnitOfWork
This commit is contained in:
parent
561ee9f56b
commit
9b3d4ef8cd
@ -10,7 +10,7 @@ namespace SqlSugar
|
||||
public interface ISugarUnitOfWork<T> where T : SugarUnitOfWork, new()
|
||||
{
|
||||
ISqlSugarClient Db { get; set; }
|
||||
T CreateContext(bool isTran);
|
||||
T CreateContext(bool isTran=true);
|
||||
}
|
||||
public class SugarUnitOfWork<T> : ISugarUnitOfWork<T> where T : SugarUnitOfWork, new()
|
||||
{
|
||||
@ -19,7 +19,7 @@ namespace SqlSugar
|
||||
this.Db = db;
|
||||
}
|
||||
public ISqlSugarClient Db { get; set; }
|
||||
public T CreateContext(bool isTran)
|
||||
public T CreateContext(bool isTran=true)
|
||||
{
|
||||
return Db.CreateContext<T>(isTran);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user