linqpad更新数据备忘

void Main()
{
//    var items = (from item in CM_Books where item.BookID !=1 select item).ToList();
//    foreach(var item in items)
//        CM_Books.DeleteOnSubmit(item);
//    SubmitChanges();

    var items = (from item in CM_BookPages where item.BookID !=1 select item).ToList();
    CM_BookPages.DeleteAllOnSubmit(items);
    SubmitChanges();
    
}

 

你可能感兴趣的:(linqpad更新数据备忘)