Otis wrote:
The UnitOfWork classes are meant for keeping track of actions you have to do, not as a bucket of entities you work with
An example of this would be creating an instance of a CustomersEntity, setting its values to the values collected in the UI, and then putting it into the UOW for a Save operation, correct?
In my scenario, I am creating new entities in each step of the wizard, filling the entity values with values collected from the UI, and passing the entities to the UOW.
I was just thinking it would be convenient to be able to see what the UOW knows about so that I can fill in the forms controls using values from the entities already contained in the UOW, that makes logical sense right?
In any case, I can just add the new entities to a hash table and have the step check the hash table for its entities, and pull the values that way.
If I create a new entity, then set its values, will I be able to read the values without performing a save or will I get an ORM Exception? i.e.
CustomerEntity newCustomer = new CustomerEntity();
newCustomer.FirstName = "bob";
newCustomer.LastName = "jones";
textBox1.Text = newCustomer.FirstName;