Fluent NHibernate View Mapping requires Id Column
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-04-19T20:22:53Z
Indexed on
2010/04/19
21:13 UTC
Read the original article
Hit count: 1161
Hi
Trying to use FNH to map a view - FNH insists on having a Id property mapped. However not all of my views have a unique identifing column.
I can get around this with XML mappings as I can just specify a
<id type="int">
<generator class="increment"/>
</id>
at the top of the mapping.
Is there any way to duplicate this in FNH...?
TIA
Matt
© Stack Overflow or respective owner