objectcontext
Execute a SQL stored procedure before every query generated by EntityFramework
I need to execute a SQL stored procedure every time before I query my ObjectContext. What I want to achieve is setting the CONTEXT_INFO to a value which will be later on used with most of my queries.[详细]
2023-01-20 12:35 分类:问答How do I query navigation properites using linq to sql and ef
I am trying to strongly type a query for 3 ef objects using linq to sql. There are one-to-many relationships with product and category.My classes contain navigation properties and look like this.[详细]
2023-01-19 03:51 分类:问答Entity Framework Update Methods
I have a few entities I\'d like to update at the same time. However I\'d like to write individual update methods in each classes partial class file, for each entity and call them all at the same time.[详细]
2023-01-18 10:49 分类:问答EF4 DAL design and the ObjectContext: Argument with co-worker
I work with a senior developer who is a guru .NET architect. We have had many constructive arguments over the last 6+ months and generally I concede defeat in most of our di开发者_运维问答scussions. I[详细]
2023-01-18 04:09 分类:问答How to clear contents of ObjectContext in Entity Framework 1.0
Is there a method of manually clearing/resetting an ObjectContext back to its initial state? Note that I can\'t just instantiate a new context.[详细]
2023-01-17 18:07 分类:问答ObjectContext.SaveChanges() violates primary key, throws UpdateException?
Paraphrasing from this MSDN documentation ... An INSERT statement is generated by the Entity Framework and executed on[详细]
2023-01-15 18:22 分类:问答IQueryable Repository with StructureMap (IoC) - How do i Implement IDisposable?
If i have the following Repository: public IQueryable<User> Users() { var db = new SqlDataContext();[详细]
2023-01-15 01:02 分类:问答EF save to Context but not to Datasource
Having a EF Context and a Testenity I want to get the following test to work. TestEntity testEntity = new TestEntity() { Name = \"Hello World\" };[详细]
2023-01-10 08:32 分类:问答Refresh ObjectContext or recreate it to reflect changes made to the database?
I have a web service that exposes operations to and from a database. I\'m using Entity Framework 4 for the DAL.[详细]
2023-01-08 18:08 分类:问答C# - Entity Framework add new object to ObjectContext
im working with Entity Framework, SQL and C#. i have a Table called Client and other called clients_phone.[详细]
2023-01-07 20:52 分类:问答