On Feb 1, 5:59 pm, Berryl Hesh <[email protected]> wrote: > This is a relatively ancient post that says NHib won't auto-increment > for you, and proposes a way to do > it:http://blog.caraulean.com/2008/08/26/additional-identity-column-with-...
The problem with IDENTITY is that it doesn't auto increment inside context of another column. So if I would use it the generated ids would look like this: Production Batch 1 Batch (auto incremented id 1) Batch (auto incremented id 2) Production Batch 2 Batch (auto incremented id 3) // Should be 1 Batch (auto incremented id 4) // Should be 2 Batch (auto incremented id 4) // Should be 3 At the moment I think the easiest solution is to lock the Production Batch object. -- 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.
