mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Add SimpleClient.CopyNew()
This commit is contained in:
parent
c5636897ce
commit
25da26eec4
@ -7,7 +7,7 @@ namespace SqlSugar
|
||||
{
|
||||
public interface ISimpleClient<T> where T : class, new()
|
||||
{
|
||||
void CopyNew();
|
||||
ISqlSugarClient CopyNew();
|
||||
RepositoryType CopyNew<RepositoryType>() where RepositoryType : ISugarRepository;
|
||||
SimpleClient<ChangeType> Change<ChangeType>() where ChangeType : class, new();
|
||||
RepositoryType ChangeRepository<RepositoryType>() where RepositoryType : ISugarRepository ;
|
||||
|
@ -35,9 +35,10 @@ namespace SqlSugar
|
||||
{
|
||||
return this.Context.GetSimpleClient<ChangeType>();
|
||||
}
|
||||
public void CopyNew()
|
||||
public ISqlSugarClient CopyNew()
|
||||
{
|
||||
this.Context = this.Context.CopyNew();
|
||||
return this.Context;
|
||||
}
|
||||
public RepositoryType CopyNew<RepositoryType>() where RepositoryType : ISugarRepository
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user