EF 4.x generated entity classes (POCO) and Map files
Posted
by
JBeckton
on Stack Overflow
See other posts from Stack Overflow
or by JBeckton
Published on 2012-10-23T22:59:23Z
Indexed on
2012/10/23
23:00 UTC
Read the original article
Hit count: 228
entity-framework-4
I have an MVC 4 app that I am working on and using the code first implementation except I cheated a bit and created my database first then generated my entity classes (poco) from my database using the EF power tools (reverse engineer). I guess you can say I did database first method but I have no edmx file just the context class and my entity classes (poco)
I have a few projects in the works using MVC and EF with pocos but just the one project I used the tool to generate my pocos from the database.
My question is about the mapping files that get created when I generate my pocos using the tool. What is the purpose of these Map files? I figured the map files are needed when generating the db from the model like with the true code first method, in my case where I am using a tool to generate my model from the database do the map files have any influence on how my app uses the entity classes?
© Stack Overflow or respective owner