Skip to content Skip to sidebar Skip to footer
Showing posts with the label Datacontext

Force The Opening Of The Datacontext's Connection (linq)

When you create a datacontext, its connection is closed until you retrieve objects and it stays ope… Read more Force The Opening Of The Datacontext's Connection (linq)

System.invalidoperationexception: An Entity Can Only Be Attached As Modified

am trying to update table called 'Hero' , am using DataContext , here is how the codes look… Read more System.invalidoperationexception: An Entity Can Only Be Attached As Modified