NHibernate and objects with value-semantics
- by Groo
Problem: If I pass a class with value semantics (Equals method overridden) to NHibernate, NHibernate tries to save it to db even though it just saved an entity equal by value (but not by reference) to the database. What am I doing wrong?
Here is a simplified example model for my problem:
Let's say I have a Person entity and a City entity. One…