Top "Entity-framework-4" questions

A tag for ADO.

Use the ColumnAttribute or the HasKey method to specify an order for composite primary keys

I'm trying to use composite primary key on 2 objects with parent-child relationship. Whenever I try to create a new migration, …

c# entity-framework entity-framework-4 database-migration
Better way to query a page of data and get total count in entity framework 4.1?

Currently when I need to run a query that will be used w/ paging I do it something like this: //…

c# entity-framework c#-4.0 entity-framework-4 entity-framework-4.1
Is DbContext the same as DataContext?

I'm following a tutorial by Scott Gu that refers to a class named DbContext. I can't find it on any …

c# database entity-framework-4
Create a DbSet<T> dynamically in Entity Framework?

In LINQ to SQL, I can create a repository dynamically using DataContext.GetTable<T>. Is there a similar …

c# linq-to-sql entity-framework-4 ef-code-first dbset
Can't get EntityFunctions.TruncateTime() to work

I am using Entity Framework Code First. Using LINQ to Entity I want to grab a record based on a …

c#-4.0 entity-framework-4 linq-to-entities entity-functions
Update relationships when saving changes of EF4 POCO objects

Entity Framework 4, POCO objects and ASP.Net MVC2. I have a many to many relationship, lets say between BlogPost and …

asp.net-mvc entity-framework-4 poco
Output parameter in stored procedure in EF

I have an existing database with lots of complex stored procedure and I want to use those procedure through EF 4. …

stored-procedures entity-framework-4 output-parameter
Refresh entity instance with DbContext

With EF4 CTP5 DbContext, what is the equivalent of this public void Refresh(Document instance) { _ctx.Refresh(RefreshMode.StoreWins, instance); } …

entity-framework-4 entity-framework-ctp5 ef-code-first
Why can't Entity Framework see my Stored Procedure's column information?

I have the following stored procedure and when I attempt to Function Import it says my Stored Procedure returns no …

entity-framework stored-procedures entity-framework-4
Joining tables using more than one column in Linq To Entities

Every single example of joins in Linq to Entities involves only one column in the on clause. What is the …

entity-framework entity-framework-4 linq-to-entities