Top "Code-first" questions

Code-first is a software implementation approach that favors programming against an API over other approaches that may rely more heavily on visual tools or require the presence of some external source that is inspected to generate program behavior, structure, or data.

Self-referencing many-to-many recursive relationship code first Entity Framework

I can't seem to make this work at all class Member { public virtual IList<Member> Friends { get; set; } […

c# entity-framework many-to-many code-first
Multiple foreign keys pointing to same table in Entity Framework 4.1 code first

I'm stuck at trying to write the Entity Framework 4.1 code first model for the following DB relationship. Here is a …

entity-framework-4.1 code-first
Loading Nested Entities / Collections with Entity Framework

I am trying to Eagerly load all the related entities or collection of Entity in one call. My Entities Looks …

c# entity-framework-4.1 code-first entity-relationship eager-loading
ASP.NET MVC3 and Entity Framework Code first architecture

My previous question made me think again about layers, repository, dependency injection and architectural stuff like this. My architecture now …

asp.net-mvc unit-testing entity-framework architecture code-first
EF4 Code-First causes InvalidOperationException

I'm having an issue when trying to run my project each time it builds. It seems the initializer runs, but …

c# database entity-framework code-first ef-code-first
Oracle.ManagedDataAccess.EntityFramework - ORA-01918: user 'dbo' does not exist

I am trying to implemente code First Migrations with Oracle.ManagedDataAccess 6.121.1.0 provider, but with no success at all. As I …

oracle entity-framework code-first entity-framework-migrations odp.net
What the purpose of OnModelCreating in EF4 Code-First?

I was curious about what the purpose of OnModelCreating in EF4 Code-First context class? How does it work?

entity-framework entity-framework-4 code-first
Sample for Entity Framework 6 + Code First + Oracle 12c

I have a problem with a Visual Studio solution using Entity Framework 6 + Code First + Oracle 12c. I'm not sure it …

entity-framework code-first oracle12c
MVC Model Range Validator?

i wnat to validate the datetime, My Code is: [Range(typeof(DateTime), DateTime.Now.AddYears(-65).ToShortDateString(), DateTime.Now.AddYears(…

asp.net-mvc-3 validation date-range code-first
seed method not called with EntityFramework CodeFirst

I've been struggling on and off with this problem since 4.1 (now I'm on 4.3). It seems to me that to get …

entity-framework entity-framework-4 ef-code-first code-first