Last post Mar 25, 2015 11:17 PM by Maziar
Mar 24, 2015 10:17 AM|Maziar|LINK
I have a problem that has me confused. I have been using LINQ to SQL and I have a problem. All of a sudden,it show the changes in runtime but my data is not being saved to the database .I use SubmitChanges() and It has primary key; No errors, no nothin'.
when start app in vs2012, in datagridview,changes is shownig but when return to vs,the table is unchanged. thanks.
Mar 24, 2015 10:20 AM|Lokesh B R|LINK
Check the SQL table whether the values are updating or not.
share the code for updating?
Mar 24, 2015 11:22 PM|Fei Han - MSFT|LINK
Thanks for your post.
Firstly, you could refer to those similar issues.
Besides, you could show us your relevant code. We will check the code to find the problem.
Mar 25, 2015 11:09 PM|Maziar|LINK
private void button1_Click(object sender, EventArgs e)
DataClasses1DataContext db = new DataClasses1DataContext();
int intedText = int.Parse(textBox1.Text);
var info = from n in db.Studs
i check it .but SQL server is not installed in my system,i only use VS2012.
thanks for help.
Mar 25, 2015 11:17 PM|Maziar|LINK
thanks.this links not answer me.
i use another way other than codes that show here.like use of "DeleteOnsubmit()" and all is ok in runtime but not real changes.