diff --git a/Src/Asp.NetCore2/SqlSugar/SimpleClient.cs b/Src/Asp.NetCore2/SqlSugar/SimpleClient.cs index d9a7b536f..252e26dcc 100644 --- a/Src/Asp.NetCore2/SqlSugar/SimpleClient.cs +++ b/Src/Asp.NetCore2/SqlSugar/SimpleClient.cs @@ -35,6 +35,10 @@ namespace SqlSugar { return this.Context.GetSimpleClient(); } + public void CopyNew() + { + this.Context = this.Context.CopyNew(); + } public RepositoryType CopyNew() where RepositoryType : ISugarRepository { Type type = typeof(RepositoryType);