mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:31:30 +08:00
Update Core
This commit is contained in:
parent
9b3d4ef8cd
commit
a3db3c21bf
@ -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