Entity Framework 4: Inheritance and Optimistic Concurrency

Posted by Mohammadreza on Stack Overflow See other posts from Stack Overflow or by Mohammadreza
Published on 2010-06-11T08:28:34Z Indexed on 2010/06/11 8:33 UTC
Read the original article Hit count: 308

Hi guys, I'm using AdventureWorks 2008 R2 database and added the BusinessEntity and Person tables to my EDMX. Then I changed the model in which the Person table inherits from the BusinessEntity table. As you may know these two tables have ModifiedDate and rowguid columns so the Person class should not have these properties because it inherits them from the BusinessEntity class.

My question is, how can I modify the model to support inheritance and optimistic concurrency on both Person and BusinessEntity classes/tables on ModifiedDate property/column.

PS. It also get me an error message that I have asked here.

Thanks

© Stack Overflow or respective owner

Related posts about inheritance

Related posts about entity-framework-4