在NHibernate中删除对象可以使用:
1。无条件删除:session.delet(object);
2。根据一种条件删除:session.Delete("from Student o where o.id=?",id,NHibernateUtil.String)
如果我要根据姓名和所选课程两种条件删除该怎么做?
1。无条件删除:session.delet(object);
2。根据一种条件删除:session.Delete("from Student o where o.id=?",id,NHibernateUtil.String)
如果我要根据姓名和所选课程两种条件删除该怎么做?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货