Linq知识汇总

1.删除

m2SharpDataContext m2db = new m2SharpDataContext();
var query = m2db.Inf_Balance.Where(qu=>qu.vehicleCode==vehicleCode&&qu.ItemCode==itemCode);
m2db.Inf_Balance.DeleteAllOnSubmit(query);
m2db.SubmitChanges();

2.

posted @ 2012-10-29 17:05  Uoolo  阅读(199)  评论(0编辑  收藏  举报