The initial release of .NET Core in 2016 was the most radical change in the history of .NET. Microsoft released version 2.0 one year later, and 2.1 the next year. This version brings many new features to the table, allowing developers to more easily build apps with ASP.NET Core MVC. In this course, Building Your First ASP.NET Core 2.1 MVC Application with Visual Studio 2017, you will build a simple site in a hands-on way, mostly using version 2.0, but also updated to reflect 2.1. You will be shown the new project structure, one of the biggest changes, and project files such as the new csproj project file. You will build a page using the MVC pattern. You will see how a page is built up starting from the model, the controller, and the view. You will also learn where Razor comes into play, and you’ll add a basic database using Entity Framework Core 2.0. At the end of this course, you will have built a simple application that gives you a solid understanding of the ASP.NET Core MVC platform.
Course Overview Hi, everyone. My name is Gill Cleeren and welcome to my course, Building Your First ASP. NET Core 2. 0 MVC Application with Visual Studio 2017. I'm a solution architect for mobile and web projects. Late 2016, Microsoft launched ASP. NET MVC as the future of ASP. NET. About a year later, ASP. NET Core 2. 0 MVC, so the next version, has been released. Microsoft has extended the protocol already quite a lot and they will keep adding more and more features to. NET Core. This course is aimed at giving you a hands-on way to learn about ASP. NET Core 2. 0 MVC. You'll build together with me a full application in Visual Studio 2017. You'll see how to apply the MVC pattern, build views, work with a real database, and much more. Some of the major topics that we will cover include building a fully working application starting from File New Project. Learn about the new features in ASP. NET Core 2. 0 MVC such as stack helpers, access data in a database, using Entity Framework Core 2, include ASP. NET identity to allow users to authenticate to your site. By the end of this course you'll know how you can build a fully working, real-world application using ASP. NET Core 2. 0 MVC in Visual Studio 2017. Before beginning this course you should be familiar with some C# and some HTML. I hope you will join me on this journey to learn ASP. NET Core 2. 0 MVC with the Building Your First ASP. NET Core 2. 0 MVC Application with Visual Studio 2017 course here on Pluralsight.
Introduction Hi there, and welcome to this Pluralsight course named, Building Your First ASP. NET Core 2. 0 MVC Application with Visual Studio 2017. My name is Gill Cleeren and I'll be your trainer for this course. The title of this course is already giving away what I'll be teaching you in this course. We'll be spending quite a lot of time writing code in Visual Studio 2017, creating an ASP. NET Core 2. 0 MVC application and the nice thing is that you'll be able to follow along with everything that I'm doing in this course, but more on that later in this module. At the end of this course, you'll have understood how ASP. NET Core 2. 0 works, how MVC works, and how Visual Studio 2017 can be used to create a real application that you can use as the basis for other applications that you'll need to build in your professional life. This course is now also updated for ASP. NET Core 2. 1. You'll notice that we are using the ASP. NET 2. 0 template, but everything that we are covering in this course can be done with ASP. NET 2. 1 as well. In the first demo of this course I'll start with an overview of what exactly you'll be learning in this course and what to expect in terms of gained knowledge after completing the course. I'll be spending some time as well to explain to you already what ASP. NET Core is all about and why it's such a big deal for Microsoft as well as for you, a. NET developer. Finally, we'll be finishing this module by taking a look at what you'll need to have installed on your machine to follow along with this course. Let's get started.
Setting up Your Site with Visual Studio 2017 Hi there and welcome to this module titled, Setting Up Your Site with Visual Studio 2017 here on Pluralsight. My name is Gill Cleeren and I'll be guiding you through this module. So far, we haven't really started with the creation of our site just yet, but that will change in this module. By the end of this module we will already have configured the application correctly. Quite a few things are very particular in the area of the configuration of the site so let's dive in and learn more about this. A small overview of what we will be doing in this module is in place. We will start with File New Project and we will take a look at what gets created by executing the template. You will learn more about the different files that get created when you execute the template. After that we will explore the configuration of the site, which is as mentioned, something entirely new in ASP. NET Core.
Creating the List Page Hi there, and welcome to another module of the Building Your First ASP. NET Core 2. 0 MVC Application course here on Pluralsight. I'm still Gill Cleeren, so that has not changed since the last module. In this module we will create the first list page for our application and for that we are of course going to follow the principles of the MVC pattern. So we'll be creating the different building blocks throughout this module. As always, let me give you an outline of what we will be looking at in this module. We are using ASP. NET Core 2. 0 MVC and of course, that fully relies on the MVC pattern. So for that very reason, I want to make sure that you understand the concepts of MVC and we'll kick off the module with a short overview of the building blocks in an MVC approach. In the next part, I will be taking you the creation of the page that we are going to build in this module and we'll see how each building block is to be created using ASP. NET Core 2. 0 MVC. We will start from the ground up and so we'll first create the model and repository clauses. Next, quite important in the whole MVC story is of course, the controller and it will look at how we can create a controller for the list page here, and we only have the controller, we won't really see anything just yet so we will be learning how we can add the view in the next part and we'll learn about Razor and other view-related topics here as well. Finally, we'll want to make our view look a bit nicer. To do that, I'll show you how you can add in your project some Bootstrap code. After completing the steps in this module, we will already have a fully working MVC page up and running.
Adding Data with Entity Framework Core Hey there, and welcome to another module of pure ASP. NET Core 2. 0 MVC fun. I'm Gill Cleeren and I'll also be guiding you through this module. In this module we'll keep working on our application and as the title of the module has given away, we'll be adding support for Entity Framework Core to our application. So far we have been using mock data so by the end of this module we'll have support for a real database in the application. Let's kick off the module again by taking a look at what we will be covering in this module. We'll start the module by exploring Entity Framework Core or EF Core for short. Once we have enough knowledge about the framework, we'll see how we can add it to our application. After that, I will show you how we can through the use of EF Core, initialize the database from code. Finally, we'll finish the module by looking at the approach we'll need to follow when we are modifying a model in the code. I will see that we can do that using something called migrations. Let's get started.
Adding Navigation to the Site Alright, I'm ready for another module in the Building Your First ASP. NET Core 2. 0 MVC Application course here. I'm Gill Cleeren and in this module we are going to extend the application a little bit more. Up until now the application just had one page and for a real application that's a pretty low number. So what we'll do in this module is see how we can navigate to another page in our application. I'll be explaining how we can add navigation in an ASP. NET Core application. Good traditions never stop! So we'll start this module as well with a small overview of what we will be learning in this module. First, I'll start by explaining to you how navigation in ASP. NET Core MVC works. Next, we'll make some changes to our application and we'll add support for navigation.
Creating a Simple Form Hi there, and welcome to another fun module in the Building Your First ASP. NET Core 2. 0 MVC Application with Visual Studio 2017 course here on Pluralsight. I'm still Gill Cleeren and I'll be guiding you through this module. The module title is already giving away what we will be doing in this module, is it not? Creating a simple form is exactly what we'll be doing here. I'll be showing you how we can add a contact form to our site and along the way you'll see how we can use MVC to validate the entered data and also store it in the database. Creating a form will thus be the focus of this module. You'll see soon that in ASP. NET Core 2. 0 MVC the creation of a form will typically be done using tag helpers again. We've already looked at tag helpers in the previous module and you'll see more use of these here as well. Just creating the form is not enough; we'll need to also make sure that the data entered by the user is correct before we'll store it in the database. We'll see how this is done in the part, Model binding and validation.
Adding Login Capabilities This is the last module that we'll be spending together for now, but hey, let's make the best of it, shall we? Welcome to this module of Building Your First ASP. NET Core 2. 0 MVC Application. In this module we'll be looking at how we can secure the application. Most specifically we'll be taking a look at how we can make sure that not just anyone can use the feedback form that we have created in the previous module, but instead, only logged-in users can do this. Let's take a look at the agenda for this module first. We'll start the module by exploring the API that we'll use to work with security, which is the ASP. NET Core Identity API. I'll give you the needed information to get started with this API. I'll give you the needed information to get started with this API. Next, as we have done before, once we have understood the fundamentals, we'll add support for authentication to the site and make sure that as mentioned, only logged-in users will be able to send feedback to Bethany.