Entity Structure and Views

I use EF 4 and used the option "Update model from database" to import the view into the model.

What I would like to do now is select "Create a database from the model" and choose the correct EF script. My experience is that it creates a table instead of a view.

Is there any way to do this?

+3
source share
1 answer

I do not think this is possible in the current version. First, the code remains in the first version.

It would be one to tell EF that these fields are mapped to a view, however you will also need to specify the EF from which the fields were displayed in the view.

+1

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


All Articles