objectcontext Questions
4
Solved
Can it be done without using TypeMock Islolator? I've found a few suggestions online such as passing in a metadata only connection string, however nothing I've come across besides TypeMock seems to...
Italianate asked 24/4, 2010 at 3:24
2
Solved
I am working on a batch process which dumps ~800,000 records from a slow legacy database (1.4-2ms per record fetch time...it adds up) into MySQL which can perform a little faster. To optimize this,...
Mitra asked 29/6, 2012 at 0:19
6
Solved
I'm starting to see Contexts everywhere I look. In ASP.NET MVC, there are ControllerContexts, RequestContexts, HttpContexts, FormContexts. In Entity Framework, you have ObjectContexts and DbContext...
Clackmannan asked 17/12, 2010 at 5:21
1
Solved
I just downloaded EntityFramework.dll v4.3. I've found a number of questions that compare DbContext vs. ObjectContext. But most of these are from 2010, or early 2011.
I'd like to read more on the ...
Kenning asked 6/5, 2012 at 23:56
2
Solved
few days ago i read tutorial about GenericRepository and Unit Of Work patterns http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-the-repository-and-unit-of-work-patter...
Poinciana asked 22/3, 2012 at 12:51
2
Solved
I'm using the Entity Framework for an ASP.NET Web Forms application and I'm wondering how I should deal with ObjectContext and it's lifetime.
For example, I have an InviteService class that manages...
Latt asked 19/1, 2012 at 14:30
1
Solved
I was previously using a DataContext which had a GetTable(type) method to get tables generically. Example:
context.GetTable(myObject.GetType());
Recently my team decided to switch to using Obje...
Anglonorman asked 31/8, 2011 at 20:37
1
Solved
Scenario: Trying to extract and rearange information from one database to an other.
DB A has some data I want to get. I want to store it on DB B in a slightly different structure.
DB A I get using...
Cotemporary asked 10/8, 2011 at 21:55
1
I want confirm if the Transaction that Entity Framework's ObjectContext.Connection.BeginTransaction() method returns uses the support of MSDTC (Microsoft Distributed Transaction Coordinator) or not...
Exuberant asked 28/7, 2011 at 10:42
1
Solved
In ASP.NET MVC 2, using Entity Framework 4, I'm getting this error "An entity object cannot be referenced by multiple instances of IEntityChangeTracker".
A search of SO shows that it is probably b...
Englut asked 14/7, 2011 at 5:19
1
Solved
For some reason I am getting the following error at the db.SaveChanges(); instruction:
Cannot insert the value NULL into column 'UserId', table 'XXXXXXXXX_Dev.dbo.Portfolios'; column does not allo...
Kristykristyn asked 7/7, 2011 at 15:23
2
Solved
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 safest way ...
Fantastic asked 17/2, 2011 at 18:10
1
Solved
I'm very new to C# and MVC in general and I've been creating my own little blog site as a test project. Although most things are working up to this point, I have had problems selecting multiple col...
Consecrate asked 19/6, 2011 at 20:4
1
Solved
I've created the following Context to be used with Entity Framework Code First:
public class Context : DbContext
{
public DbSet<Animal> Animals { get; set; }
}
Now I would like to use t...
Inartificial asked 13/6, 2011 at 8:0
3
I apologize for the lack of detail in this question - the first thing I need help on is knowing where to look to find more detail.
I have a problem with enity framework 4 navigation properties app...
Ticker asked 5/4, 2011 at 0:15
4
Solved
I'm building a 4 layered ASP.Net web application.
The layers are:
Data Layer
Entity Layer
Business Layer
UI Layer
The entity layer has my data model classes and is built from my entity data mod...
Crews asked 21/5, 2010 at 17:49
3
Solved
If i have the following Repository:
public IQueryable<User> Users()
{
var db = new SqlDataContext();
return db.Users;
}
I understand that the connection is opened only when the query is...
Rola asked 8/9, 2010 at 7:2
1
Solved
Reading this MSDN article titled "Working with ObjectSet (Entity Framework)" It shows two examples on how to add a Product.. one for 3.5 and another for 4.0.
http://msdn.microsoft.com/en-us/librar...
Polypary asked 11/5, 2010 at 13:19
2
Solved
We have a multi-layered Asp.NET Web Forms application. The data layer has a class called DataAccess which impements IDisposable and has an instance of our Entity Framework Object Context as a priva...
Leggy asked 5/3, 2010 at 1:28
© 2022 - 2024 — McMap. All rights reserved.