4.39 out of 5
4.39
28 reviews on Udemy

Step-By-Step: Create Web API Using ASP.Net Core

Project-based Learnning: How to build database driven CRUD API with ASP .NET Core 2.2 MVC and Entity Framework Core
Instructor:
Pavol Almasi
1,678 students enrolled
English
Creation of CRUD API in Asp .Net Core 2.2
.Net Core Services
Data Transfer Objects (DTO)
Use of DbContext for 1-to-many and many-to-many relationship
Understanding of Dependency Injection
Understanding of the use of Interfaces in C# and .Net Core

UDATE: April 14, 2019 – The autogenerated captions were removed and replaced with real manually written captions for ALL lesons so following the course is now even easier than before!

Welcome to Creating CRUD API in Asp .Net Core and Entity Framework Core.

As the title of the course suggests, we will be creating an API that will handle Creating, Reading, Updating and Deleting records from a database with the help of .Net Core and Entity Framework.

This course is all about CRUD operations. Step by step, we will set up a complete API to handle each of the operations in a multi-table database. For the next several hours, we will dedicate our time to interfaces, dependency injection, 1 to many and many to many database relationships, .Net Core Services, Models, Data Transfer Objects, Controllers and Actions, and of course, C# language. But don’t let any of that scare you. Quite the opposite.

Get excited to learn a ton of new material and dive into the new world of .net core. The course makes the learning easy with the mix of slow introduction of new material, repetition, and lot of practice! Every line of code is coded on camera, there are no mysteriously appearing blocks of code. Every step is explained every time, not just the first time you are introduced to it. And you will have a chance to practice what you learned in homework assignments.

Let’s go over few details. First, let’s discus what this course IS

1. Introduction to creating CRUD API using Asp .net Core and Entity Framework.

2. We go over complete creation of CRUD API

3. I introduce new concepts as they are needed in regards to progression of the project

4. This is a “follow along” and “practice what you learned” course

5. No code is skipped over.

What this course is NOT:

1. Complete or Deep Dive course

2. Learn C# or .net core course

3. Theory with explanation and code snippets

4. Ready to Deploy Real World project

1. API are a huge subject, and so is net core and so is Entity Framework. In this course we will create a CRUD API. Nothing more, nothing less. Do not expect a dive into security, database optimization, asynchronous processing or anything else. Just CRUD. Pure and simple. We will work only with C# language inside .net core. So do not expect any javascript or fancy javascript framework or library. There is none in this course. But don’t expect to use this course as a “Learn C# course”. It is not that. I’m sure you will pick up some new syntax and C# tricks, but you do need some C# skills prior to taking this course. The project we use is a great starting point as it introduces several of the essential techniques and concepts, including often neglected CRUD operations on database tables with many-to-many relationships, this certainly isn’t a deploy-ready project.

2. Remember, this is a course, and a practical tutorial. There are lot of courses that will show you the way into one topic and then quickly move on to another topic. This is not one of those courses! My goal is to lead you step by step, all the way, through the new territory inside .net core and introduce you to new concepts and topics and help you learn them. And equally important is to then help you understand and retain what you learned through practice and repetition. If you prefer to be shown something once and then jump to another topic, then this course is NOT for you. If, on the other hand, you learn by combining explanation, coding along, and practicing the concepts while still having the option to see the instructor coding the whole solution, then this course is definitely for you!

3. Did this ever happen to you? You took a course, and you just loved it! Everything was clearly explained, and you had lots of aha moments. Then the course ended…and suddenly, you felt lost. You felt like you learned so much while taking the course, yet could barely remember anything once it ended. Even when you revisited the source code supplied by the instructor, it just didn’t even seem familiar. Suddenly you felt like you didn’t learn anything. All the concepts that seemed so clear during the course felt totally foreign when you were on your own. In my experience, this is often the case when you simply take a course that starts exactly where your current skills are, but moves past the threshold of skills you are ready for. Like trying to go from crawling straight to sprinting.

4. is this course for you? What skills should you have before taking it? If you are a programmer with decent understanding of OOP principles and C#, than you have the all the skills needed to benefit from this course. There are no prerequisites for .net core, or entity framework or how to create an API. Since you are interested in this course, I assume you heard of these things and perhaps played around a little too. That’s all that is needed to take this course.

Well, let’s code!

Introduction

1
Introduction
2
Demonstration of the Final API
3
Source Code, Help, Discounts, and Misc

Preparing the .Net Core Services, Models, and Database

1
Creating New Project
2
Adding MVC Service
3
Relationships And Properties for Classes
4
Creating Models
5
One To Many Relationship Requirements
6
Creating Navigational Properties For 1-to-Many Relationships
7
Many to Many Relationships Requirements
8
Creating Intermediary Classes
9
Summary of Relationships Between Entities
10
Data Annotation
11
HOMEWORK: Data Annotation
12
More Data Annotation
13
Adding NuGet Packages
14
Adding Connection String
15
Adding DbContext
16
Adding OnModelCreating Method
17
HOMEWORK: Adding BookAuthor Intermediary Class to ModelBuilder
18
Adding BookAuthor Intermediary Class to ModelBuilder
19
Creating Database Migration
20
Seeding The Database
21
Seeding The Database and Reviewing Inserted Data

Creating API's - Before we start

1
Reviewing API Calls Requirements
2
Dependency Injection And Inversion of Control

Creating Countries HttpGet API

1
Creating ICountryRepository Interface
2
Implementing ICountryRepository Interface Part 1
3
Implementing ICountryRepository Interface Part 2
4
Creating GetCountries API
5
Testing GetCountries API
6
Registering ICountryRepository Interface Service
7
Creating Country DTO (Data Transfer Objects)
8
Finishing GetCountries API
9
Creating GetCountry API
10
Creating GetCountryOfAnAuthor API

Creating Categories HttpGet API

1
HOMEWORK: Implement ICategoryRepository Interface and API
2
Creating ICategoryRepository Interface
3
Implementing GetCategories and GetCategory Methods
4
Finishing Implementation of ICategoryRepository
5
Creating GetCategories API
6
Creating GetCategory API
7
Creating GetAllCategoriesForBook API

Finishing DTO and Interfaces for Reviews, Reviewers, Authors, and Books

1
HOMEWORK: Create Remaining DTO Classes
2
Creating Remaining DTO Classes
3
HOMEWORK: Crate Remaining Interfaces
4
Creating IBookRepository Interface
5
Creating IAuthorRepository Interface
6
Creating IReviewerRepository Interface
7
Creating IReviewRepository Interface

Finishing Country and Category Interface Implementation

1
Implementing GetAuthorsFromACountry Method
2
Implementing GetAllBooksForCategory Method

Creating Reviewer HttpGet API

1
HOMEWORK: Implement IReviewerRepository Interface and API
2
Implementing IReviewerRepository Interface
3
Creating GetReviewers API
4
Creating GetReviewer API
5
Creating GetReviewsByReviewer API
6
Creating GetReviewerOfAReview API

Creating Review HttpGet API

1
HOMEWORK: Implement IReviewRepository Interface and API
2
Implementing IReviewRepository Interface
3
Creating GetReviews API
4
Creating GetReview API
5
Creating GetReviewsOfABook API
6
Creating GetBookOfAReview API

Creating Author HttpGet API

1
HOMEWORK: Implement IAuthorRepository Interface and API
2
Implementing IAuthorRepository Interface
3
Creating GetAuthors API
4
Creating GetAuthor API
5
Creating GetBooksOfAuthor API
6
Creating GetAuthorsOfABook API

Creating Book HttpGet API Calls

1
HOMEWORK: Implement IBookRepository Interface and API
2
Implementing IBookRepository Interface

Creating IsDuplicate Validation for Country and Category

1
HOMEWORK: Implement DuplicateCountry and DuplicateCategory Methods
2
Implementing IsDuplicateCountry and IsDuplicateCategory Methods
3
Finishing Testing from our ToDo List

Continuing Creating HttpGet API Calls For Book

1
Creating GetBooks API
2
Creating GetBook API
3
Creating GetBookRating API

Create, Update, And Delete APIs

1
Review of Create, Update, and Delete API Calls

Create, Update, And Delete API for Country

1
Adding Create, Update, Delete Methods to ICountryRepository Interface
2
Implementing Create, Update, Delete Methods For ICountryInterface
3
Creating CreateCountry API Part 1
4
Creating CreateCountry API Part 2
5
Creating UpdateCountry API
6
Testing UpdateCountry API
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.4
4.4 out of 5
28 Ratings

Detailed Rating

Stars 5
15
Stars 4
8
Stars 3
4
Stars 2
0
Stars 1
1
374f6b7367aaecced110445904f0ddaf
30-Day Money-Back Guarantee

Includes

10 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion