1.方法一,面向对象

using (MyDbContent content = new MyDbContent())
{
    content.Entry<UserInfo>(model).State = System.Data.Entity.EntityState.Deleted;
    content.SaveChanges();
}

 

相关文章:

  • 2021-11-14
  • 2021-11-29
猜你喜欢
  • 2021-07-27
  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案