No I mean i'd like this table to have both.

An ID thats is the primary key that gets generated using Guid.Comb and
an alternate that gets generated by HiLo or Identity or something,
thats a friendly number for the user.  I would not use this alternate
ID in foreign keys.

Craig


On Aug 4, 10:58 am, Tuna Toksoz <[email protected]> wrote:
> Do you mean that this table doesn't have Guid but instead HiLo?Are you using
> auto-mapping?
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
>
> On Mon, Aug 3, 2009 at 10:35 PM, Fregas <[email protected]> wrote:
>
> > HI all,
>
> > I need to add an alternate key to a table.  Basically i'm using Guid-
> > Comb for all my primary keys but on this one table i need to have a
> > friendly number using a sql server identity or perhaps NH hi-lo.  Is
> > there a way to do this thru fluent? Do I need to wait for support for
> > natural-id ?
>
> > Thanks,
> > Craig
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to