Hi all,
I'm reading the documentation of NHibernate in order to know if it fits to my needs.
I got objects from a webservice and I want to persist them to a database.
The class are generated from Visual Studio and I would prefer not to modify them.
At the start of my reading, NHibernate seemed to be perfect for my needs because it doesn't require to change the Business object, in my case the generated class from the webservice.
Then I have found this in the documentation about "Assigned Identifier" id generator ( my identifiers are retrieved from the webservice).
Quote:
Due to its inherent nature, entities that use this generator cannot be saved via the ISession's SaveOrUpdate() method. Instead you have to explicitly specify to NHibernate if the object should be saved or updated by calling either the Save() or Update() method of the ISession.
the SavorUpdate method was a method which really interests me since it's exactly what I have to do.
Does the last version of NHibernate always contain this limitation ?
is this change planned before the end of this month ( I have a short dead line) ?
Thanks in advance for your feedback
Regards
Christophe