1

I am beginning a new project, so one of the tasks given to us is to determine whether we should create one large Entity Framework 4 model (don't know how many tables yet), or split the model into separate models, one per module within the application.

If we create separate models, we'll have repeated entities within each module, but this way we have less grouped entities, less potential performance problems, etc.

So if anyone can provide insight or their experience when setting up EF models I would appreciate it. What are the pain points to be aware of?

Thanks.

1
  • 1
    just as an example: in one of our projects we use two models. One as a kind of catalog and one for the project data. (file based db) Commented Sep 7, 2010 at 14:52

1 Answer 1

2

imho you should consider POCOs and only use the entity models to be able to create objectcontexts.

In this way you can have the same POCOs for all modules (put them in a shared assembly) but still have different entity models in each module.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.