Category: Data
-
Related entities in Entity Framework Code First approach
In this post we will learn to create relationship between entities in the Entity Framework Code First approach. Setting up We are going to create three tables and set up the relationship between them. BankUser BankUserAccount Nomniee To create tables we will create entities further in the post. For table creation the context class has…
-
Video : One to one relationship between entities in Entity Framework Code First
Container.cs Product.cs EFContext.cs
-
Getting started with Code First Approach and Entity Framework Migrations Commands
In this post we will walk through basics of Entity Framework migration commands and learn about Code First Approach. Entity Framework allows you to create database from plain classes. You can model your domain into classes and subsequently database can be created or updated from the model using Entity Framework.