| | |
| | | { |
| | | var dbres = isAsync ? await Db.Deleteable<T>().In(primaryKeys).ExecuteCommandAsync() : Db.Deleteable<T>().In(primaryKeys).ExecuteCommand(); |
| | | action.Message = $"Delete {typeof(T).Name} entity by primary keys from database success"; |
| | | action.IsSuccessed = true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | { |
| | | var dbres = isAsync ? await Db.Deleteable<T>().Where(entity).ExecuteCommandAsync() : Db.Deleteable<T>().Where(entity).ExecuteCommand(); |
| | | action.Message = $"Delete {typeof(T).Name} entity from database success"; |
| | | action.IsSuccessed = true; |
| | | } |
| | | catch (Exception ex) |
| | | { |