objectcontext
What's the difference between service context and object context?
I am having trouble in understanding what is the difference between the service context and the object context.[详细]
2023-03-03 04:08 分类:问答Use DI tool unity to create EF ObjectContext object
I tried to register type in container using script below, it works well Container.RegisterType<System.Data.Objects.ObjectContext,[详细]
2023-02-16 21:49 分类:问答C#/EF and the Repository Pattern: Where to put the ObjectContext in a solution with multiple repositories?
I have multiple开发者_运维问答 repositories in my application.Where should I put the ObjectContext?Right now, I have a reference like ObjectContext ctx; in every repository.What is the smartest and sa[详细]
2023-02-11 12:21 分类:问答EF4: ObjectContext inconsistent when inserting into a view with triggers
I get an Invalid Operation Exception when inserting records in a View that uses “Instead of” triggers in SQL Server with ADO.NET Entity Framework 4.[详细]
2023-02-10 05:06 分类:问答what's the best practice to attach a entity object which is detached from anthoer ObjectContext?
As mentioned in the title, how many methods are available? I just have this case: I get a entity object from one ObjectContext, and then I detach the entity obejct from OjbectContext object, and retu[详细]
2023-02-08 18:25 分类:问答Entity Framework ObjectContext with Dependency Injection
Well, it seems like I\'m stuck in my application structure. Here\'s what I want to do: UI layer: An ASP.NET webforms website.[详细]
2023-02-03 11:19 分类:问答Workaround for Entity Framework Context.Refresh bug?
I ran into this problem using EF4 and a self-referential table (implementing an adjacency list hierarchy).[详细]
2023-02-03 06:00 分类:问答Attaching an object tree to object context in Entity Framework
I have an EDM with the following three types: Foo, Bar and Foob. Foob is a subclass of Foo. Foo has a collection of Bar entities. Bar has a collection of Foo entities. I want to add a new Foo object t[详细]
2023-01-31 05:12 分类:问答EF4 - Add object to objectcontext without savechanges
I have a page like Order - Order lines. Order represents by some textboxes and ddl开发者_C百科s, Order lines represents by GridView.[详细]
2023-01-23 03:54 分类:问答Multiple Entity Framework models and the objectcontext
I have a asp.net web application that uses Entity Framework.The application data layer uses a method outlined by Jordan Van Gogh found here.In a nutshell, this method uses one shared objectcontext ins[详细]
2023-01-22 03:34 分类:问答