public class OrderMap : ClassMap<Order>
{
public OrderMap()
{ ...
Version(x => x.Version);
} }
On Tue, Apr 7, 2009 at 3:32 PM, Bill <[email protected]> wrote:
>
> Hi,
>
> Since we are assigning our own ID's to entities, when we add a new
> entity to the collection I don't believe there is no way that
> NHibernate can know that it is a new row and to add it when Save() is
> called. Instead it tries to Update it - which fails. Is there a way to
> specify Version in Fluent as NH needs?
>
> thanks!
> Bill
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---