FluentNHibernate: mapping a Version property
Posted
by Brian
on Stack Overflow
See other posts from Stack Overflow
or by Brian
Published on 2010-06-15T23:41:44Z
Indexed on
2010/06/15
23:52 UTC
Read the original article
Hit count: 250
How do I map a Version property using conventions (e.g. IClassConvention, AutomapperConfiguration)?
public abstract class Entity
{
...
public virtual int? Version { get; protected set; }
...
}
<class ...>
<version name="Version" column="version" generated="never" type="Int32" unsaved-value="0" />
</class>
© Stack Overflow or respective owner