Giter Club home page Giter Club logo

doctorwho_efcore's Introduction

EF Core: Doctor Who

Before you start

  • Use .NET Core 3.0+
  • Do one task at a time. Run tests, many tests!
  • Follow GIT best practices you learned to push your code.
  • This exercise depends on SQL: Doctor Who exercise.

Requirements

  1. Create a DB named DoctorWhoCore (using SSMS).
  2. Create a console application project named DoctorWho.
  3. Create a library project named DoctorWho.Db and reference it from DoctorWho project.
  4. Create DoctorWhoCoreDbContext and add it to DoctorWho.Db
  5. Create the data models for Doctor Who tables with all necessary keys, relationships, constraints and navigations. These models should exist in DoctorWho.Db
  6. Write migrations to create the previous tables. Migrations should exist in DoctorWho.Db.
  7. Seed the tables with at least 5 records in each.
  8. Write migrations to create the functions, sprocs and views from previous exercise.
  9. Write methods in EF in the console app to execute the functions, sprocs and views from previous exercise.
  10. Write Create/Update/Delete methods for companions, enemies, doctors, authors, and episodes.
  11. Write methods to:
    1. AddEnemyToEpisode: Add an enemy to an episode.
    2. AddCompanionToEpisode: Add a companion to an episode.
    3. GetAllDoctors: Get all available doctors.
    4. GetEnemyById: Get an enemy by ID.
    5. GetCompanionById: Get a companion by ID.
  12. 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 in Repositories folder DoctorWho.Db

doctorwho_efcore's People

Contributors

lenasama7a avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.