Entity Framework code first fluent API & implement relations between classes demo
install-package EntityFramework
Enable-Migrations
Add-Migration InitialCreation
Update-Database
database will be created on the following instance (LocalDb)\MSSQLLocalDB
//Entity1 can be associated with zero or only one instance of Entity2.
//One-to-zero-or-one relationship happens when the primary key of one table becomes PK & FK in
//another table in relational database such as SQL Server.
//Entity 1 = Student
//Entity 2 = StudentAddress
//So, we have to configure StudentId in Student table as PK and StudentAddressId column in
//StudentAddress table as PK and FK both.
//one Standard can include many Students. So the relation between Student and Standard entities would be one-to-many.
// Student can join multiple courses and multiple students can join one course