コード例 #1
0
 public static void DeleteOrderedBooks(shopContext shopContext, int orderId)
 {
     shopContext.RemoveRange(shopContext.BooksOrdered.Where(b => b.OrderId == orderId));
     shopContext.SaveChanges();
 }