entity-framework-4
Reload object in an Entity Framework context with updated values
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[详细]
2023-04-10 23:43 分类:问答Why re-initiate the DbContext when using the Entity Framework?
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[详细]
2023-04-10 19:14 分类:问答c# DbSet - Internal object association cannot be got
I have the same problem of 开发者_StackOverflowthis topic. but on the association between entities.[详细]
2023-04-10 18:24 分类:问答How to force EF Code First to query the database?
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.[详细]
2023-04-10 13:49 分类:问答MVC3 view not updating using EF 4.1
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:[详细]
2023-04-10 12:56 分类:问答Entity Framework - pessimistic locking
What I am tryi开发者_如何学Pythonng to do is basically what NHibernate does when you do something like:[详细]
2023-04-10 12:33 分类:问答Entity Framework - Eager loading of subclass related objects
I wonder if there is a possibility to eager load related entities for certain subclass of given class.[详细]
2023-04-10 12:15 分类:问答Entity Framework not updating data in database with update
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:[详细]
2023-04-10 11:12 分类:问答Caching an EF entity in ASP.NET cache
I have an MVC3 site with EF4.1 and repository/unit of work pattern and creating a new context per http request.[详细]
2023-04-10 10:59 分类:问答ObjectContext and Caching Per Request - Getting ObjectDisposedException
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[详细]
2023-04-10 10:30 分类:问答