sql server - insert in dymanic update - linq to sql -


I am developing a dynamic data app, in which I am trying to request an inclusion request during the update of the request I (Logging Change Request, Anything)

  Public Partial Category ProjectDataContext {Partial Zero UpdateRequest (Request Example) {RequestRevision RV. = New request request (request. GETOriginalEntityState (example)); This.ExecuteDynamicInsert (RV); This.ExecuteDynamicUpdate (example); }}  

This code error can not be done for the operation unit because this track is not being changed. "

When I added code for conversion tracking

  public partial class ProjectStatusDataContext {partial zero UpdateRequest (request example) {bool tracking = ObjectTrackingEnabled; Object tracking enabled = true; RequestRevision RV = new request request (request. Getalative Antitistat (example)); //instance.RequestRevisions.Add(rv); - It does not work. Accelerate Dynamic Insert (RV); //this.RequestRevisions.InsertOnSubmit(rv); - Object tracking is not working; Enabled = tracking; This.ExecuteDynamicUpdate (example); }}  

Now I'm getting the error "Data reference options can not be modified, the result has been returned from the result."

Which fire I get by using this SQL trigger, when an update id on the request table Ho.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -