Hi, I'm trying to use DO.net with an .Net ObjectDataSource in a disconnected state. The classes being used with the ObjectDataSource creates a new entity when constructed in a disconnected state, but how do I reflect property changes and then commit back to the DB? Scenario for code below: The ODS calls a static method and grabs an new UiEndUser and populates the fields on a formview of a webform based on the wrapped EndUser entity public properties. When sumbit on the formview is called, the properties are set with the populated data in the formview on the webform and a static method is called again by the ODS Code:
|
Basically I am looking for the scenario described in:
http://blog.dataobjects.net/2009/06/disconnected-offline-entities-poco-and.html
2) A wizard in ASP.NET application that must make a set of changes through a set of postbacks, but they must be really flushed into the storage only on the final wizard page.
I wanted to ask why do you use
DisconnectedState
at all here, but now it's clear the choice is correct.