摘要:
people 类中有 zhengshu类 且是一对一,现在要删除people类中的zhengshu网上看了N多办法,什么更新外键什么滴。其实方法简单极了using (KJExamEntity context = new KJExamEntity()) { context.Peoples.Attach(people); context.ZhengShus.Remove(people.SBZhengShu); context.SaveChanges(); }完事之后... 阅读全文
posted @ 2013-10-17 03:33
为森
阅读(640)
评论(0)
推荐(0)

浙公网安备 33010602011771号