Re: [fluent-nhib] Re: Length, Not.Nullable and Nullable Ints as Id ?

2010-01-17 Thread Hudson Akridge
I would still recommend against that process. Nullable Primary keys is typically an anti-pattern in database design. As I mentioned, you might want to look into the version element instead of nulls. That way NHibernate will know whether or not the entity has been assigned an ID or not. If you're

[fluent-nhib] Re: Length, Not.Nullable and Nullable Ints as Id ?

2010-01-17 Thread Martin From
Hello, thanks for your answers. The reason i want a nullable int is only because creating a new instance of any entity will make it per default have a Id of 0 which could be a valid Id (you can start your ids with a negative number instead of starting with 1). Nullable int for the id will be a wa