1.1、

在Linq to SQL中要删除一行记录,官方的例子教我这样做

Code1:
using (PubsDataContext pubsContent = new PubsDataContext())
{
    pubsContent.Log = Console.Out;
    Author author = pubsContent.Authors.Single(a => a.au_id == "111-11-1111");
    pubsContent.Authors.DeleteOnSubmit(author);
    pubsContent.SubmitChanges();
}

相关文章:

  • 2021-09-18
  • 2021-09-27
  • 2022-12-23
  • 2022-02-26
  • 2021-12-26
  • 2021-08-08
  • 2021-05-15
  • 2022-12-23
猜你喜欢
  • 2021-11-06
  • 2021-10-17
  • 2021-08-08
  • 2022-12-23
  • 2021-07-21
  • 2021-08-16
  • 2022-02-23
相关资源
相似解决方案