日期:2014-05-20 浏览次数:20752 次
public static void DelMarcByBatch(string strBatch)
{
using (TYLAS5Entities t = new TYLAS5Entities())
{
var result = from x in t.T_BaseMarc
where x.Batch == strBatch
select x;
var delItem = result.First();
t.T_BaseMarc.Remove(delItem);
t.SaveChanges();
}
}