EF4 two models one database, maybe?

I searched this answer and can’t find anything, but with EF4 I want to create a base model and add to our “foundation” any new project that we create if we need to add custom tables to which on db sites we can only add a model with these specific tables and associate it with the model in our "foundation", I can’t find a good resource on something like this, and it looks like it would be a normal thing to have a reusable base model and a separate one for any of them.

Thanks for the help or pointers!

+4
source share
1 answer

Yes, in a sense.

As a result, you will have two separate, different contexts of the object — one of your “foundations” with base tables and classes, and the other from a specific project model.

The problem is that you cannot move objects from one context to another ... as long as these objects never interact in any way, then everything will be fine.

+5
source

Source: https://habr.com/ru/post/1336489/


All Articles