vB.N3T
پنج شنبه 16 آبان 1392, 16:42 عصر
سلام مهندسان عزیز
من برای اپدیت جدول از کد زیر استفاده کردک
var h =( from st in db.tbl_persons where st.id==int.Parse(textBox4.Text) select st).Single();
tbl_person d = h;
d.name = textBox2.Text;
d.lastname = textBox3.Text;
db.SubmitChanges();
MessageBox.Show("update");
خط 2 رو میشه تحلیل کنید.مرسی
من برای اپدیت جدول از کد زیر استفاده کردک
var h =( from st in db.tbl_persons where st.id==int.Parse(textBox4.Text) select st).Single();
tbl_person d = h;
d.name = textBox2.Text;
d.lastname = textBox3.Text;
db.SubmitChanges();
MessageBox.Show("update");
خط 2 رو میشه تحلیل کنید.مرسی