I am trying to update the code through Linq, but I am getting this error:
Unable to bind an entity that already exists.
C # code is here:
var con = (from c in cmsContentTable where c.ContentName == contentId select c).FirstOrDefault(); cmsContentTable.Attach(con); con.ContentData = "New Value"; cmsContentTable.Context.SubmitChanges();
c # linq-to-sql
coure2011
source share