mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update Nav CUD
This commit is contained in:
parent
92085efcbc
commit
466b4b5b31
@ -15,12 +15,27 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public DeleteNavProvider<Root,TChild> ThenInclude<TChild>(Expression<Func<T,TChild>> expression)
|
public DeleteNavProvider<Root,TChild> ThenInclude<TChild>(Expression<Func<T,TChild>> expression)
|
||||||
{
|
{
|
||||||
return null;
|
throw new Exception("开发中7月15号之前上线");
|
||||||
}
|
}
|
||||||
|
public DeleteNavProvider<Root, TChild> Include<TChild>(Expression<Func<T, TChild>> expression)
|
||||||
public DeleteNavProvider<Root,Root> AsNav()
|
|
||||||
{
|
{
|
||||||
return null;
|
throw new Exception("开发中7月15号之前上线");
|
||||||
|
}
|
||||||
|
public DeleteNavProvider<Root, TChild> ThenInclude<TChild>(Expression<Func<T, List<TChild>>> expression)
|
||||||
|
{
|
||||||
|
throw new Exception("开发中7月15号之前上线");
|
||||||
|
}
|
||||||
|
public DeleteNavProvider<Root, TChild> Include<TChild>(Expression<Func<T, List<TChild>>> expression)
|
||||||
|
{
|
||||||
|
throw new Exception("开发中7月15号之前上线");
|
||||||
|
}
|
||||||
|
private DeleteNavProvider<Root,Root> AsNav()
|
||||||
|
{
|
||||||
|
throw new Exception("开发中7月15号之前上线");
|
||||||
|
}
|
||||||
|
public bool ExecuteCommand()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return AsNav().ThenInclude(expression);
|
return AsNav().ThenInclude(expression);
|
||||||
}
|
}
|
||||||
public void ExecuteCommand()
|
public bool ExecuteCommand()
|
||||||
{
|
{
|
||||||
var hasTran = this.Context.Ado.Transaction != null;
|
var hasTran = this.Context.Ado.Transaction != null;
|
||||||
if (hasTran)
|
if (hasTran)
|
||||||
@ -74,14 +74,16 @@ namespace SqlSugar
|
|||||||
PreFunc();
|
PreFunc();
|
||||||
}, ex => throw ex);
|
}, ex => throw ex);
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
public async Task ExecuteCommandAsync()
|
public async Task<bool> ExecuteCommandAsync()
|
||||||
{
|
{
|
||||||
await Task.Run(async () =>
|
await Task.Run(async () =>
|
||||||
{
|
{
|
||||||
ExecuteCommand();
|
ExecuteCommand();
|
||||||
await Task.Delay(0);
|
await Task.Delay(0);
|
||||||
});
|
});
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private InsertNavTask<Root, Root> AsNav()
|
private InsertNavTask<Root, Root> AsNav()
|
||||||
|
@ -15,10 +15,25 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public UpdateNavProvider<Root,TChild> ThenInclude<TChild>(Expression<Func<T,TChild>> expression)
|
public UpdateNavProvider<Root,TChild> ThenInclude<TChild>(Expression<Func<T,TChild>> expression)
|
||||||
{
|
{
|
||||||
return null;
|
throw new Exception("开发中7月15号之前上线");
|
||||||
}
|
}
|
||||||
|
public UpdateNavProvider<Root, TChild> Include<TChild>(Expression<Func<T, TChild>> expression)
|
||||||
public UpdateNavProvider<Root,Root> AsNav()
|
{
|
||||||
|
throw new Exception("开发中7月15号之前上线");
|
||||||
|
}
|
||||||
|
public UpdateNavProvider<Root, TChild> ThenInclude<TChild>(Expression<Func<T, List<TChild>>> expression)
|
||||||
|
{
|
||||||
|
throw new Exception("开发中7月15号之前上线");
|
||||||
|
}
|
||||||
|
public UpdateNavProvider<Root, TChild> Include<TChild>(Expression<Func<T, List<TChild>>> expression)
|
||||||
|
{
|
||||||
|
throw new Exception("开发中7月15号之前上线");
|
||||||
|
}
|
||||||
|
public bool ExecuteCommand()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
private UpdateNavProvider<Root,Root> AsNav()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user