I have an EF object that I pull from the db. I then make an update to the corresponding row in the DB through a function call which uses another DBContext. After this update, I would like to reload th
I don\'t know if there is a better way to use the DbContext because it is not recommended to set is as static when working with WCF. So we are creating it each tim开发者_如何学编程e we want to access
I have the same problem of 开发者_StackOverflowthis topic. but on the association between entities.
I have a site managing a collection of rules and a separate Windows form application making file level changes based on the rules in the database.
I am having a problem updating a record.For some reason it is not even hitting the post action in the controller and just returning:
What I am tryi开发者_如何学Pythonng to do is basically what NHibernate does when you do something like:
I wonder if there is a possibility to eager load related entities for certain subclass of given class.
I am trying to insert/update data into a table using Entity Framework 4.1 from an Edit action in my MVC3 controller with the following code:
I have an MVC3 site with EF4.1 and repository/unit of work pattern and creating a new context per http request.
I\'m using an ObjectContext and storing it in HttpContext.Current.Items collection.I share the ObjectContext for a single request, but the framework also enables the ability to load a fresh, non-cache