I am using EF 4 and have used the "Update Model from Database" option to import a view into the model.
What I would like to be able to do now is choose "Generate Database from Model" and have EF script out the view correctly. My experience is that it creates a table instead of a view.
Is there any way to accomplish this?
I do not think that this is possible in the current version. The code first is still in its first version.
It would be one thing to tell EF that these fields map to a view, however you would also need to tell EF which tables the fields in the view came from.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With