mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Synchronization code
This commit is contained in:
parent
72ed8467ea
commit
26205277b8
@ -65,7 +65,14 @@ namespace SqlSugar
|
||||
o = Activator.CreateInstance(type);
|
||||
}
|
||||
var result = (RepositoryType)o;
|
||||
result.Context = this.Context.CopyNew();
|
||||
if (result.Context != null)
|
||||
{
|
||||
result.Context = result.Context.CopyNew();
|
||||
}
|
||||
else
|
||||
{
|
||||
result.Context = this.Context.CopyNew();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public RepositoryType ChangeRepository<RepositoryType>() where RepositoryType : ISugarRepository
|
||||
|
Loading…
Reference in New Issue
Block a user