Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Writable Views

$
0
0

I've been playing around with Entity Framework and I found the workaround to get writable views to work, but I'm unsatisfied with the cost of not being able to freely add/remove/refresh schema from the database.  Essentially, I want to tell Entity Framework to behave as if my views are tables and provide the insert/update/delete operations for free.  

I understand the limitations with EF not being able to find primary keys, foreign keys, etc. on views, but if the user is willing to set these keys up, I can't think of a good reason why data reading/writing shouldn't work correctly.  My initial thought was to add an attribute to EntitySet called "IsReadOnly" that would be true by default when entities are generated from views, but could be toggled if the views are in fact writable.  

I'm excited to see that Entity Framework is open source.  I'd like some help coming up with a solution to this problem and am very willing to contribute code.


Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>