This video is available to students only

Lectures Backend

In this lesson, we're going to create lectures backend

Lectures backend#

Now let's work on structuring the course. A course usually has some sections and every section has some associated lectures. So we will design it in the same way. Let's start by creating a section model. A section will have Id, Name and list of lectures. As navigation properties, we can add CourseId of type Guid and Course. Now let's start implementing the Lecture Model. This will have Id of type int, title of type string. Since a lecture will be a video, we can add a url property of type string. Now let's add the navigation properties, SectionId of type int and Section. Now let's add collection of sections inside Course model.

Entity/Section.cs

Entity/Lecture.cs

Entity/Course.cs

Start a new discussion. All notification go to the author.