Open Jay413191 opened 2 years ago
如下,DeleteWithKeys的第一个参数要如何写??
List invHis = _inventoryHistoryRepository.FindAsIQueryable(x => x.ApplyNo == inv.ApplyNo ).ToList(); inventoryHistoryRepository.DeleteWithKeys(invHis[0].InventoryHistoryKey, true);
传object[]数组,比如new object[]{1,2,3,4,5}
可以了, 感谢大大!!
List invHis = _inventoryHistoryRepository.FindAsIQueryable(x => x.ApplyNo == inv.ApplyNo && x.SNo == inv.SNo).ToList(); object[] obj = { invHis[0].InventoryHistoryKey }; _inventoryHistoryRepository.DeleteWithKeys(obj, true);
如下,DeleteWithKeys的第一个参数要如何写??
List invHis = _inventoryHistoryRepository.FindAsIQueryable(x => x.ApplyNo == inv.ApplyNo ).ToList();
inventoryHistoryRepository.DeleteWithKeys(invHis[0].InventoryHistoryKey, true);