In that scenario, you need to use "generated", IIRC. The recommended value is guid.comb, btw.
On Mon, Sep 8, 2008 at 11:22 PM, Kaumil <[EMAIL PROTECTED]> wrote: > > I am using NewSequentialID() function which is new in SQL Server 2005 > as the default value for the column in database. This is the primary > key column of my table. I set the generator class to native for this > property/column in the mapping file for that table. > > I get an exception that - Value cannot be null. Parameter name: Id > when I try to insert a record in that table. > > Can I use NewSequentialID() as the database default for a guid/ > uniqueidentifier column? If I use the generator class to guid.comb, > the insert does not throw an exception. > > Please advise. > > Thanks > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
