Entity Framework with Sql Views in it appear as table in generate .sql file -


I have an Entity model in my project that includes some SQL Views - where "Update Model from Database" option.

Now when I select "create database from model" then I see those views as table. How can I avoid it?

This is the correct behavior. EF does not know what is to define the SQL code and because of it Apart from this, EF does not care about the manner in which your existing model was created, so if you first define your model with the idea of ​​DB and then create a database from that model So it's really all the ideas of tables Will replace them.

Comments