请问linq to entities 上怎么删除记录啊,他老是说我错误,我的代码
db.DeleteObject ( db.expand_passcodetype.Select(p => p.tid == Convert.ToInt32(ddlCodeType.SelectedValue.Trim())).ToList() );