mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Synchronization code
This commit is contained in:
parent
af6c1e9126
commit
8d305ad439
@ -8,7 +8,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
public interface ISimpleClient<T> where T : class, new()
|
public interface ISimpleClient<T> where T : class, new()
|
||||||
{
|
{
|
||||||
ISqlSugarClient CopyNew();
|
SimpleClient<T> CopyNew();
|
||||||
RepositoryType CopyNew<RepositoryType>() where RepositoryType : ISugarRepository;
|
RepositoryType CopyNew<RepositoryType>() where RepositoryType : ISugarRepository;
|
||||||
SimpleClient<ChangeType> Change<ChangeType>() where ChangeType : class, new();
|
SimpleClient<ChangeType> Change<ChangeType>() where ChangeType : class, new();
|
||||||
RepositoryType ChangeRepository<RepositoryType>() where RepositoryType : ISugarRepository ;
|
RepositoryType ChangeRepository<RepositoryType>() where RepositoryType : ISugarRepository ;
|
||||||
|
@ -36,10 +36,11 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return this.Context.GetSimpleClient<ChangeType>();
|
return this.Context.GetSimpleClient<ChangeType>();
|
||||||
}
|
}
|
||||||
public ISqlSugarClient CopyNew()
|
public SimpleClient<T> CopyNew()
|
||||||
{
|
{
|
||||||
this.Context = this.Context.CopyNew();
|
SimpleClient<T> sm = new SimpleClient<T>();
|
||||||
return this.Context;
|
sm.Context = this.Context.CopyNew();
|
||||||
|
return sm;
|
||||||
}
|
}
|
||||||
public RepositoryType CopyNew<RepositoryType>() where RepositoryType : ISugarRepository
|
public RepositoryType CopyNew<RepositoryType>() where RepositoryType : ISugarRepository
|
||||||
{
|
{
|
||||||
|
@ -45,7 +45,6 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var splitTableAttribute = entityType.GetCustomAttribute<SplitTableAttribute>();
|
|
||||||
if (splitTableAttribute.CustomSplitTableService != null)
|
if (splitTableAttribute.CustomSplitTableService != null)
|
||||||
{
|
{
|
||||||
context.CurrentConnectionConfig.ConfigureExternalServices.SplitTableService
|
context.CurrentConnectionConfig.ConfigureExternalServices.SplitTableService
|
||||||
|
Loading…
Reference in New Issue
Block a user