Entity Classes, IDs and Equality
I want my entity classes to rely on their ID when checking equality, the ID is populated from the repository when I retrieve an object and automatically generated when I save a new entity. This poses the problem of how I compare two entities before they have been saved while working with them in my […]