Mapping a view without a unique id column...
Hi All
As the title says, I need to fluently map a view that does not have a unique id column. This is currently not possible because FNH protests about the lack of an "Id" mapping.
This IS possible in standard NH by just including
<id type="int">
<generator class="increment"/>
</id>
as the Id mapping and not having a property present in the mapped class.
Is there any way to duplicate this behaviour in Fluent ?
Cheers
Matt
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Devon Lazarus on 05 May, 2010 03:10 PM
Please re-post your question but make sure the xml your including is escaped. As you can see in your post, the XML has been removed and we can't see what identity strategy your using/referencing in NH.
I think you're suggesting the use of the "assigned" identifier but I can't be sure.
-devon
Support Staff 3 Posted by James Gregory on 05 May, 2010 03:20 PM
It's alright, I've done it. We're on with this issue anyway, I've spoken to Matt offline.
4 Posted by Devon Lazarus on 05 May, 2010 03:47 PM
Oops! Okay, sorry for the extra posts.
-d
5 Posted by S on 12 May, 2010 12:24 AM
If you've got a solution to your problem, please post it.
Support Staff 6 Posted by James Gregory on 12 May, 2010 03:16 AM
The work is in the llblgen-id branch.
7 Posted by Matt Trinder on 12 May, 2010 08:07 AM
Hi James
We've tested this fix and it works perfectly, so thanks for that. Can you
give us any idea when you'd be able roll it into the RTM version ?
Thanks
Matt
Support Staff 8 Posted by James Gregory on 13 May, 2010 11:22 PM
The changes are in the master branch as of last night.
James Gregory resolved this discussion on 13 May, 2010 11:22 PM.