Reputation: 53243
I am working on a code template to create POCOs from my Db Schema.
Is there a kind of summary list that defines the MUST-TO-HAVEs in a class so that it can be mapped to Db with NHibernate without any problem.
(As I know, one of the rules is to have your properties virtual so that NHibernate proxies can override)
Thanks!
Upvotes: 0
Views: 54
Reputation: 5958
well, besides the virtual
properties you must also:
private/protected
int GetHashCode()
and bool Equals(object obj)
by using the aforementioned object identifier in their bodyUpvotes: 3