异常开始结束带代码提交
This commit is contained in:
@@ -37,8 +37,8 @@ namespace Tnb.EquipMgr
|
||||
protected async Task Relevance<TSrc, TDest>(TSrc input, string mColumnName, string name, Expression<Func<TDest, bool>> deleleExp) where TDest : BaseEntity<string>, new()
|
||||
where TSrc : BaseMoldMaintainInput
|
||||
{
|
||||
await _db.Deleteable<TDest>().Where(deleleExp).ExecuteCommandAsync();
|
||||
if (input == null) throw new ArgumentNullException(nameof(input));
|
||||
await _db.Deleteable<TDest>().Where(deleleExp).ExecuteCommandAsync();
|
||||
var entities = new List<TDest>();
|
||||
if (input.ids?.Count > 0)
|
||||
{
|
||||
@@ -46,7 +46,7 @@ namespace Tnb.EquipMgr
|
||||
{
|
||||
var pk = id;
|
||||
TDest entity = new();
|
||||
entity.PropertySetValue(mColumnName, input.item_group_id);
|
||||
entity.PropertySetValue(mColumnName, input.id);
|
||||
entity.PropertySetValue(name, pk);
|
||||
entities.Add(entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user