Select from following answers:- Call SubmitChanges after InsertOnSubmit.
- Call Refresh after InsertOnSubmit.
- Call the Attach method of the Customer collection.
- All Above
You must call SubmitChanges to write changes to the database. If you access the query before doing so, a new row is not included.
The Refresh method refreshes the object state by using data in the database. It does not submit changes.
The mapped table Attach method attaches an entity to the DataContext. It does not submit changes. It should not be used on entities that are already attached to a DataContext.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator