One way for you would be to pull out a HiLo or similar generator (basically
not identity) out of NHibernate & use it to assign the confirmation number
in your code.

P.S.Atsome point I've faced a similar requirement, but the other way around:
using identity for PKey & Guid.Comb for other column.

On Wed, Oct 29, 2008 at 5:18 PM, Bil Simser <[EMAIL PROTECTED]> wrote:

>
> Hi guys,
>
> Just wondering if this is the best way to do something. We have a
> table mapping where we're using a GUID for the Id/primary key. In
> addition, there's a requirement for us to give back a confirmation
> number to users when we add a new item to this table.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to