If I have an object of type MyBull and a List orig:
MyBull
List orig
// Just an example MyBull x = getMeTheObjectWithIdFromDB(9); ori
By default objects will expose reference based equality. If you want custom rules, such as equality based on id fields, you need to override the Equals and GetHashCode methods.
Equals
GetHashCode