How to break-down my EF Model?
We have a database开发者_JS百科 app that we're beginning to write some new systems for and I want to redo our DAL, potentially using EF4. As I begin to look at this, it seems that it's a bad idea to just use a single EDMX file for my entire database. When I did this, here is a screenshot of what that looks like (zoomed out as far as I can zoom out) to give you a bit of an idea.
So it seems that I should break this down into multiple EDMX files. Where can I start to learn a good strategy for doing this?
Thanks!
There is nothing to learn at the basic level. Subset your screens and problems down to a reasonable level of complexity and use a EDMX for each section or part of your application.
At the most complex level you'll need to understand all about how the "spaces" work ( C-Space, S-Space, O-Space ) and how to create ObjectContexts with custom configuration.
精彩评论