Home / dating meet online parent site / Datacontext submitchanges not updating

Datacontext submitchanges not updating

This API supports the product infrastructure and is not intended to be used directly from your code.

When Submit Changes is called, members of the child collections are put into an state.

To update members of a child collection, you must explicitly call Attach and specify that entity.

Attach attaches all entities in the object graph of the provided object.

For example, the following C# code: Using db As New Sample Data Context() Dim employee As New Employee With Dim master As New Master() master.

Employee = employee Dim child As New Child() child.

399 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*