حذف اطلاعات در لینکیو
int id = Convert.ToInt32(dataGridView1.CurrentRow.Cells["id"].Value.ToString()); var alldata = from a in context.nametabel where a.id == id select a; if (alldata.Count() > 0) { nametabel delete= alldata.Single(); context.nametabel.DeleteOnSubmit(delete); context.SubmitChanges(); select(); }
+ نوشته شده در شنبه بیست و پنجم شهریور ۱۳۹۶ ساعت 11:12 توسط محسن
|