Mapping a view without a unique id column...

Original Post Matt Trinder's Avatar

Matt Trinder

26 Apr, 2010 07:30 PM via web

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

  1. 2 Posted by Devon Lazarus on 05 May, 2010 03:10 PM

    Devon Lazarus's Avatar

    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

  2. Support Staff 3 Posted by James Gregory on 05 May, 2010 03:20 PM

    James Gregory's Avatar

    It's alright, I've done it. We're on with this issue anyway, I've spoken to Matt offline.

  3. 4 Posted by Devon Lazarus on 05 May, 2010 03:47 PM

    Devon Lazarus's Avatar

    Oops! Okay, sorry for the extra posts.

    -d

  4. 5 Posted by S on 12 May, 2010 12:24 AM

    S's Avatar

    If you've got a solution to your problem, please post it.

  5. Support Staff 6 Posted by James Gregory on 12 May, 2010 03:16 AM

    James Gregory's Avatar

    The work is in the llblgen-id branch.

  6. 7 Posted by Matt Trinder on 12 May, 2010 08:07 AM

    Matt Trinder's Avatar

    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

  7. Support Staff 8 Posted by James Gregory on 13 May, 2010 11:22 PM

    James Gregory's Avatar

    The changes are in the master branch as of last night.

  8. James Gregory resolved this discussion on 13 May, 2010 11:22 PM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

05 Jul, 2010 10:29 PM
05 Jul, 2010 12:45 PM
05 Jul, 2010 12:42 PM
05 Jul, 2010 12:17 PM
05 Jul, 2010 12:12 PM

 

03 Jul, 2010 12:26 AM
02 Jul, 2010 02:17 PM
02 Jul, 2010 08:18 AM
02 Jul, 2010 12:20 AM
01 Jul, 2010 10:14 PM