Top "Ef-code-first" questions

EF Code-First is a way of using Microsoft's Entity Framework with POCO classes, as opposed to model-first or DB-first.

Entity Framework 5 code-first not creating database

I'm trying to create a new database using the code first concept of Entity Framework. However when running the code …

c# entity-framework asp.net-mvc-4 ef-code-first entity-framework-5
Entity Framework Code First Using Guid as Identity with another Identity Column

a.k.a How can we create multiple identity columns in Code First? Because of clustering performance, a common recommendation …

entity-framework ef-code-first entity-framework-5 entity-framework-migrations
Can I change the default schema name in entity framework 4.3 code-first?

Currently I am deploying my application to a shared hosting environment and code-first with migrations has been working great except …

c# sql entity-framework entity-framework-4 ef-code-first
conversion of a datetime2 data type to a datetime data type error with EF Code first?

I'm using EF Code first with my asp.net mvc application. here is my code: Request.RequestDate = DateTime.Now; the …

c# sql-server-2008 entity-framework ef-code-first entity-framework-4.3
Entity Framework auto incrementing field, that isn't the Id

I know this isn't the most ideal solution, but I need to add an auto incrementing field to one of …

entity-framework ef-code-first code-first
Debug code-first Entity Framework migration codes

I'm using Entity Framework code first in my website and I'm just wondering if there is any way to debug …

entity-framework ef-code-first entity-framework-5 entity-framework-migrations
No mapping exists from object type System.Collections.Generic.List when executing stored proc with parameters in EF 4.3

Lately I've been working on stored procedure and encountered 1 strange problem. First, I was able to successfully call a stored …

entity-framework entity-framework-4.1 ef-code-first
What is the syntax for self referencing foreign keys in EF Code First?

I am trying to reference a foreign key from SpouseId to Id in the Contact table. What is the syntax …

entity-framework ef-code-first
How to set default value for POCO's in EF CF?

In Entity Framework Code First approach, how do you set a default value for a property in the POCO's EntityConfiguration …

.net entity-framework ef-code-first entity-framework-4