How to override Equals on a object created by an Entity Data Model?

Posted by jamone on Stack Overflow See other posts from Stack Overflow or by jamone
Published on 2010-03-18T18:38:16Z Indexed on 2010/03/18 18:41 UTC
Read the original article Hit count: 351

Filed under:
|
|

I have an Entity Data Model that I have created, and its pulling in records from a SQLite DB. One of the Tables is People, I want to override the person.Equals() method but I'm unsure where to go to make such a change since the Person object is auto-generated and I don't even see where that autogen code resides. I know how to override Equals on a hand made object, its just where to do that on an autogen one.

© Stack Overflow or respective owner

Related posts about c#

Related posts about entity-framework