Entity Framework - in model first, how do I get my EF classes to be based on the existing domain cla

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-05-17T00:22:24Z Indexed on 2010/05/17 0:30 UTC
Read the original article Hit count: 336

Hi,

If I already have domain classes, and I want to be able persist them using EF via a model first approach how do I do this?

For example do I go to the EF designer (in VS2010) and create the model and generate the classes, then go to these EF classes and somehow manually modify them? But then would there be an issue if I needed to change the model and re-create database TSQL from the model for updates?

What's the easiest approach?

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about visual-studio-2010