NHibernate dateTime as an ID Bad idea?

Posted by Miau on Stack Overflow See other posts from Stack Overflow or by Miau
Published on 2010-03-30T16:21:45Z Indexed on 2010/03/30 16:23 UTC
Read the original article Hit count: 363

Filed under:

hi there

I have an entity and it seems like using DateTime as the Id would be a good suit, however I there is this strange feeling that that it might be a terrible idea ( tho i cant come up with any logical reason as to why),

This is an immutable object ( ie once the value is recorded it shouldn't really change ) So DateTime as id field in NHibernate yay or Nay? I would appreciate your comments on this

© Stack Overflow or respective owner

Related posts about nhibernate