Migration in Code-First: Entity framework Code-First had different database initialization strategies prior to EF 4.3 like CreateDatabaseIfNotExists, DropCreateDatabaseIfModelChanges, or DropCreateDatabaseAlways. However, there were some problems wit…
Cascade Delete in Entity Framework Code-First: Cascade delete automatically deletes dependent records or set null to foreignkey properties when the principal record is deleted. Cascade delete is enabled by default in Entity Framework for all types of…
Setup Development Environment for EF Code-First: Let's setup the development environment for Code-First before starting on it. Install the following tools to work with Entity Framework Code-First: .NET Framework 4.5 Visual Studio 2012 MS SQL Server 2…