How to map inherited entities in EF code-first

c# entity-framework entity-framework-6

Question

I'm struggling with how to map the AdventureWorks 2012 sample database to an EF 6.1.3 code-first data layer.Employee and Person entities. Employee should, it would seem, come fromPerson , with aPerson.PersonType of EM However, I'm unsure of how to map this utilizingEntityTypeConfiguration<TEntity> class "mapping" Having this knowledge, I could plotPerson to come fromBusinessEntity .

1
3
4/27/2015 9:47:32 AM

Accepted Answer

ZZZ_tmp
0
5/5/2015 12:47:04 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow