Vue.NetCore icon indicating copy to clipboard operation
Vue.NetCore copied to clipboard

请教DeleteWithKeys的第一个参数要给什么??

Open Jay413191 opened this issue 3 years ago • 2 comments

如下,DeleteWithKeys的第一个参数要如何写??

List<InventoryHistory> invHis = _inventoryHistoryRepository.FindAsIQueryable(x => x.ApplyNo == inv.ApplyNo ).ToList(); inventoryHistoryRepository.DeleteWithKeys(invHis[0].InventoryHistoryKey, true);

Jay413191 avatar Jul 06 '22 10:07 Jay413191

传object[]数组,比如new object[]{1,2,3,4,5}

cq-panda avatar Jul 07 '22 09:07 cq-panda

可以了, 感谢大大!!

List<InventoryHistory> invHis = _inventoryHistoryRepository.FindAsIQueryable(x => x.ApplyNo == inv.ApplyNo && x.SNo == inv.SNo).ToList(); object[] obj = { invHis[0].InventoryHistoryKey }; _inventoryHistoryRepository.DeleteWithKeys(obj, true);

Jay413191 avatar Jul 08 '22 02:07 Jay413191