Entity Framework 4 - View / Insert Views

My EF schema has a mixture of tables and views from my database. My view objects are all read-only, I want to be able to update / insert these objects. I tried the following record with no luck:

http://smehrozalam.wordpress.com/2009/08/12/entity-framework-creating-a-model-using-views-instead-of-tables/

Anyone have other ideas / pointers - this should be doable.

amuses David

+4
source share
2 answers

Usually the message is correct. Using representations in EF is complicated. Another trick is to first use tables to determine your model, and then replace the tables in the database with views with the same names as the tables.

+3
source

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


All Articles