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.

How to disable cascade delete for link tables in EF code-first?

I want to disable cascade deletes for a link table with entity framework code-first. For example, if many users have …

c# .net database entity-framework ef-code-first
Using Entity Framework (code first) migrations in production

I'm just looking into using EF migrations for our project, and in particular for performing schema changes in production between …

.net entity-framework ef-code-first entity-framework-migrations
Should I enable or disable dynamic proxies with entity framework 4.1 and MVC3?

Could someone offer up some advice or point out some blogs/articles that could help with making this decision? The …

entity-framework orm entity-framework-4.1 ef-code-first dynamic-proxy
How do I set a column in SQL Server to varchar(max) using ASP.net EF Codefirst Data Annotations?

I've been searching around the web trying to figure out the right syntax to have Entity Framework Code First create …

c# sql-server entity-framework ef-code-first
Implementing Zero Or One to Zero Or One relationship in EF Code first by Fluent API

I have two POCO classes: Order Class: public class Order { int id; string code; int? quotationId; //it is foreign key …

c# entity-framework ef-code-first entity-relationship fluent
How to Seed Users and Roles with Code First Migration using Identity ASP.NET Core

I have created a new clean asp.net 5 project (rc1-final). Using Identity Authentication I just have the ApplicationDbContext.cs …

ef-code-first asp.net-identity asp.net-core-mvc seeding
Entity Framework Code First Lazy Loading

I am having two object classes public class User { public Guid Id { get; set; } public string Name { get; set; } // Navigation …

c# entity-framework entity-framework-4 ef-code-first lazy-loading
How to sync model after using Code First from Database using Entity Framework 6.1 and MVC 5?

Assumptions Using EF 6.1, MVC 5, VS 2013, C# I have an existing database model designed in Toad DM for SQL Server and …

c# asp.net-mvc-5 ef-code-first entity-framework-6 ef-database-first
EF Code First foreign key without navigation property

Let's say I have the following entities: public class Parent { public int Id { get; set; } } public class Child { public int …

entity-framework ef-code-first
Code First Migration with Connection Strings

So I've managed to get Code First running and it works great. Since I am still developing the application the …

ef-code-first code-first entity-framework-migrations