Vue.NetCore
Vue.NetCore copied to clipboard
请教DeleteWithKeys的第一个参数要给什么??
如下,DeleteWithKeys的第一个参数要如何写??
List<InventoryHistory> invHis = _inventoryHistoryRepository.FindAsIQueryable(x => x.ApplyNo == inv.ApplyNo ).ToList(); inventoryHistoryRepository.DeleteWithKeys(invHis[0].InventoryHistoryKey, true);
传object[]数组,比如new object[]{1,2,3,4,5}
可以了, 感谢大大!!
List<InventoryHistory> invHis = _inventoryHistoryRepository.FindAsIQueryable(x => x.ApplyNo == inv.ApplyNo && x.SNo == inv.SNo).ToList(); object[] obj = { invHis[0].InventoryHistoryKey }; _inventoryHistoryRepository.DeleteWithKeys(obj, true);