- Create a DB named
DoctorWhoCore
(using SSMS). - Create a console application project named
DoctorWho
. - Create a library project named
DoctorWho.Db
and reference it fromDoctorWho
project. - Create
DoctorWhoCoreDbContext
and add it toDoctorWho.Db
- Create the data models for Doctor Who tables with all necessary keys, relationships, constraints and navigations. These models should exist in
DoctorWho.Db
- Write migrations to create the previous tables. Migrations should exist in
DoctorWho.Db
. - Seed the tables with at least 5 records in each.
- Write migrations to create the
functions
,sprocs
andviews
from previous exercise. - Write methods in EF in the console app to execute the
functions
,sprocs
andviews
from previous exercise. - Write
Create/Update/Delete
methods for companions, enemies, doctors, authors, and episodes. - Write methods to:
AddEnemyToEpisode
: Add an enemy to an episode.AddCompanionToEpisode
: Add a companion to an episode.GetAllDoctors
: Get all available doctors.GetEnemyById
: Get an enemy by ID.GetCompanionById
: Get a companion by ID.
- Create a repository class for each entity and call it:
{EntityName}Repository.cs
, and move related methods from the previous requirements to the right repository. These repositories should exist inRepositories
folderDoctorWho.Db
-
Notifications
You must be signed in to change notification settings - Fork 0
Mo7ammadAbuSafat/DoctorWho-EFCore
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This code design for training task
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published