Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
137696 Points
22154 Posts
Moderator
MVP
May 04, 2012 07:11 AM|LINK
Priya R yes i m using L2S dc is created as private MusicClassesDataContext dc = new MusicClassesDataContext(); where MusicClassesDataContext is the model. If not wat s the correct method must be used
yes i m using L2S
dc is created as
private MusicClassesDataContext dc = new MusicClassesDataContext();
where MusicClassesDataContext is the model.
If not wat s the correct method must be used
The method is
dc.SubmitChanges();
as stated at
http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext_methods.aspx
not
Priya R dc.SaveChanges();
dc.SaveChanges();
You have to look to a L2S tutorial - such as links from
http://msdn.microsoft.com/en-us/library/bb358844.aspx
(see Topic / Location)
ignatandrei
All-Star
137696 Points
22154 Posts
Moderator
MVP
Re: MVC Create new page
May 04, 2012 07:11 AM|LINK
The method is
dc.SubmitChanges();
as stated at
http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext_methods.aspx
not
You have to look to a L2S tutorial - such as links from
http://msdn.microsoft.com/en-us/library/bb358844.aspx
(see Topic / Location)