03-08-13, 12:22 AM
السلام عليكم
اخي ابو ايهاب
سمعت نصيحتك وقرأت الكثيرعن كيفية استخدام LinQ
قمت بإعادة ذات المشروع البسيط ( اسماء المواد ) باستخدام تقنية LINQ
وقمت بمحاولة كتابة اول كود وهو المتعلق بالاضافة
[HTML]
Dim beda As New DB.Beda()
beda.Beda_Name = txt_beda.Text
beda.Shra_Price = txt_shra.Text
beda.Mabee_Price = txt_Mabee.Text
beda.Beda_Note = txt_Note.Text
DB.Bedas.InsertAllOnSubmit(beda)
DB.SubmitChanges()
MessageBox.Show("تم إضافة المستخدم", Text, MessageBoxButtons.OK, MessageBoxIcon.Information)
txt_beda.Text = ""
txt_Mabee.Text = ""
txt_shra.Text = ""
txt_Note.Text = [/HTML]
الا انه يعطي رسالة خطأ
ارجو تعديل المثال المرفق، والاشارة الى مكمن الخطأ
والف الف شكر
اخي ابو ايهاب
سمعت نصيحتك وقرأت الكثيرعن كيفية استخدام LinQ
قمت بإعادة ذات المشروع البسيط ( اسماء المواد ) باستخدام تقنية LINQ
وقمت بمحاولة كتابة اول كود وهو المتعلق بالاضافة
[HTML]
Dim beda As New DB.Beda()
beda.Beda_Name = txt_beda.Text
beda.Shra_Price = txt_shra.Text
beda.Mabee_Price = txt_Mabee.Text
beda.Beda_Note = txt_Note.Text
DB.Bedas.InsertAllOnSubmit(beda)
DB.SubmitChanges()
MessageBox.Show("تم إضافة المستخدم", Text, MessageBoxButtons.OK, MessageBoxIcon.Information)
txt_beda.Text = ""
txt_Mabee.Text = ""
txt_shra.Text = ""
txt_Note.Text = [/HTML]
الا انه يعطي رسالة خطأ
ارجو تعديل المثال المرفق، والاشارة الى مكمن الخطأ
والف الف شكر
