Yes
it seems that i have already found .IsVersion - it has same effect
But why i need to specify IsVersion explicitly?
I see that BeforeMapClass is called before mapping properties of this class
:), so info about which property is version already accessible by core at
the moment of property mapping.
For PK it is enough specify map.Id( .....); in m_mapper.BeforeMapClass
and there is no need to specify IsPersistentId in mapper.
(1 declaration statement)
It is also enough to specify
m_mapper.Class<MyEntity>(map =>
{
map.Version(x => x.Ver, ....); //(1 declaration statement
per property)
});
But 2 declarations in my initial example....
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/NAiu0kTK6ooJ.
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/nhusers?hl=en.