Click here to Skip to main content
15,914,109 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
C#
LINQDataContext db = new LINQDataContext();
EducationGroup eg = new EducationGroup();
eg.IdEducationGroup = int.Parse(TxtId.Text);
eg.NameEducationGroup = TxtName.Text;
db.EducationGroups.InsertOnSubmit(eg);
db.SubmitChanges();
Posted
Updated 9-Jul-14 17:57pm
v2
Comments
PIEBALDconsult 9-Jul-14 20:30pm    
OK.
[no name] 9-Jul-14 21:21pm    
Since you did not fix the error that was preventing the saving of the data, I am not surprised.
[no name] 10-Jul-14 1:23am    
what's your problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900