mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Synchronization code
This commit is contained in:
parent
72ed8467ea
commit
26205277b8
@ -65,7 +65,14 @@ namespace SqlSugar
|
|||||||
o = Activator.CreateInstance(type);
|
o = Activator.CreateInstance(type);
|
||||||
}
|
}
|
||||||
var result = (RepositoryType)o;
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
public RepositoryType ChangeRepository<RepositoryType>() where RepositoryType : ISugarRepository
|
public RepositoryType ChangeRepository<RepositoryType>() where RepositoryType : ISugarRepository
|
||||||
|
Loading…
Reference in New Issue
Block a user