Placeholder Image

Subtitles section Play video

  • Hi, guys, and welcome to the course on Introduction to a SP tart that core 3.1.

  • My name is booking, and I would be our instructor on this introductory course.

  • We will understand the basics off a SP dot net core the reason behind its evolution followed by the new files and four the structure that have Bean introduced.

  • Once we understand that, then we will take a look at new concepts like middle bear routing, tag, helpers, grace of syntax and much more.

  • Now, with ESPN dot net core, there are two ways to build over application.

  • First approach is MBC application, and the second approach is razor pages application.

  • We will be building projects and both the technologies to understand how the basics work.

  • Both the projects will be built with a basic red website, which stands for create, read, update and delete functionality.

  • So we will understand how to connect with data peas and play with Aunt Edie framework in our SP dot net core application.

  • Now, before we start, there are some pre requisites that you should be familiar with, I would say about three months off coding in C sharp and familiarity with basic sequel will be sufficient.

  • Also, if you're stuck with the course, my good will be published on Get Herb Depository so you can always follow along with each lecture.

  • And if there is something which still does not make sense for you, you can always raise a question, and I will be happy to answer that.

  • But the first approach you should take this.

  • Compare your court with my worship on, get up and try to identify.

  • The difference is this way.

  • You will try to identify the others yourself.

  • Now this would be a basic course.

  • Yes, we dot net core, but it will give you a solid foundation before you dive into deeper and complex courses at the end, if you're interested in more detail and in depth courses, I have courses on both NBC as well as razor pages with a SP dot net core, and I would also show you how you can and roll into those courses for the lowest price.

  • That being said, let's get started on this exciting journey to explode the basics off a sp dot net core, and I will see you in the next radio in this course, will be building two projects.

  • First will be a simple razor project, and 2nd 1 will be our main project, which will use M.

  • V.

  • C.

  • So let me demo the first project that will be building.

  • It's a simple book.

  • Wish to raise a project in which, if you select the book tab, it will display less stuff all off the books.

  • Now, here in the list, you can see two types of tables.

  • That is because at the end, here we are using data tables, which makes call off a P I on top here we have a simple table using th and TR tags here.

  • When you create a book, if you try to enter without anything, we have validations.

  • Once you enter the details to create a new book and you hit the create button, it creates the book and this place in both the places here.

  • When we use data tables, if you click added here and if we change something, let me make it a capital W and updated.

  • There you go.

  • You can see it is updated.

  • If you try to delete anything, it will display a sweet alert to you.

  • That being said we have multiple ways.

  • As I was saying before in the creating your book, you'll see a new page card create.

  • But if you go toe absurd, it will be the absurd page.

  • And that will be the same page that we've used to add it.

  • If we go right here, you see, it's absurd.

  • And if you cry here, it will be again an addict page.

  • So this is more of a simplified view.

  • And then at bottom, what we see is more often advanced view.

  • That being said, we are performing crowd operations on our book.

  • But this project is not just that will be learning racing pages and how Paige Model and Page View comes into the picture.

  • So even though this is a small project for crowd operation, that is lots off basic functionalities and basic fine overview that you need to understand that being said, let's take a look at the demo off our final project, which is way more advanced than what you see right here in this radio.

  • Let me walk you through the small project that we will build using M V C.

  • This will be a ready basic project to create great operations on book list.

  • So right here if you go on book lest we will be using their tables to display all off the list from the database, you can add a new book here.

  • You can fill in the details, but let's say if you do not enter name, we see validations that have bean enforced here.

  • That being said, you can create a book and once it is created, you can edit any off the details here and you can also delete book when you delete, we have nice alerts that you can display here and once it is successfully dilated, you will also see nice notifications.

  • So this is a great project to get started with the MBC journey and know what a SP dot net core has to offer in this video.

  • I want to give you a small introduction on a sp dot net evolution a sp dot net Court introduces probably the biggest shift the platform has experienced so far.

  • But let's take a look at how it has evolved over time.

  • In 1996 Microsoft released Framework known as A S P, which stands for actives are our pagers or classic SB with classic KSB.

  • Microsoft made it possible to have server side scripting to dynamic webpages.

  • The biggest revolution came when Microsoft released Dark Night Framework.

  • Microsoft introduced SB Dark Matter Breck forms in 2002.

  • This may creation off backpage, similar to the creation off Windows form.

  • There are a few downsides with wept forms.

  • What forms tried to make state last Web state ful, and in order to do that, it had to make lots of changes to make sure wet pagers retain their states or their values automatically view.

  • States contained those values, and that resulted in a lot off data being generated and transferred with each request sometimes even if it was not required.

  • Web forms waas the first version toe introduce court behind Good behind.

  • It's good, but it makes testing difficult because in one line we are reading from the database, and in the next line we are updating the U.

  • Y.

  • Another common issue.

  • WASP aged lifecycle went requesting a page number off events.

  • We're getting fired.

  • Getting to know all of these events was quite easy to get it wrong.

  • Although there were few downsides, wet forms were generally successful toe get signed up and running quickly.

  • A couple of years later, in 2009 Microsoft released the first version off a SP Dark night M V C.

  • And they tried toe Oh, welcome most off the problems with the forms.

  • It had emphasis on separation of concern.

  • M V C Cool is typically much easier to write.

  • Unit touched four M v.

  • C was the first tradition when they released it as open source.

  • Now, a lot off developers did not like M V C Framework because it had its own flaws when it was created.

  • It was built on top off the competence already created for reforms because off which it was closely tied to system Dark Web, which was tied toe yes and eventually windows.

  • On the other hand, where is evolving quickly, and hence Microsoft had to keep M V C with everything that was changing.

  • Also, M V C was built before Cloud came into the big picture, even though that off M V C applications are still running on cloud.

  • But it is still not built with cloud in mind.

  • Finally, in June, off 2016 Microsoft released a SP dot net core and this was the first worsen.

  • Now a SP dot net core is built on top off the new dark Net core framework.

  • Dark Nat Cole is the very first platform version off dot net and hence it is not tired to just wait knows sp dot net core as compared to the old version off M V C is not tied to the tart net framework.

  • Assemblies like system Not well, yes, Bhagat Netcord team has been very active with the new versions and then in 2017 daily start net core to followed by 2.1 and 2.2 in 28 ing.

  • Finally, in September, off 2019 sp tart Netcord three has been released, which we will be using in this course in this video.

  • Let me show you all the tools that will need for this course.

  • The first and most important is racial Studio 2019.

  • This is the I.

  • D.

  • E that will be using.

  • You can go on with your studio dot Microsoft dot com forward slash me.

  • Yes, and you can tell Note the community worship in for free.

  • Make sure you download the 2019 if it is 2017.

  • Dark Knight Court 3.1 will not work next.

  • What you need is you have to download the dot net cord 3.1 and install it.

  • So if you go on the Microsoft website for Dark Neck or 3.1 here, you can download the windows for X 64 install it once you install it.

  • Then when you create a project in Visual Studio 2019 you will see the dark net core 3.1 option, which ever discuss when we get there.

  • But make sure put off these are installed.

  • After that, you'll have to install the sequel, Server 2019.

  • You can use an older version off sequel server, but I would recommend the latest one.

  • You can download it for free for the Devil A perversion Once you start sequel server.

  • I also want you to inch talk the secrets of our management studio, which will be a U.

  • Y two, your sequel server.

  • So make sure you pinched all on four off these features and that are all the tools that you will need all off the stools are free, so you should not have to spend anything toe installed these software's on your laptop or messed up in this video.

  • I want to show you where you will find all the code that will be building far that one place will be you have to go to broken dot com in there.

  • I have courses.

  • Right now we are on the free course.

  • If you go on the details, if you click course content, it will download the completed code.

  • But if you want lecture by lecture on what was changed, you can click on get help code here it will open up.

  • Put the projects that will be building in this course here.

  • If you see the comments, they will be based on the lecture name inside Razor as well.

  • For each lecture, you will see what exactly waas changed or updated and you can make sure that you have those same things.

  • If you face any issue in a particular lecture so broken dot com And in there you have to go to the course is to find out what course your own and in there in details you will find to get help link in this section we will be creating are ready first project it will be a razor project.

  • And then once we created, we will take a look at the files and folders that are created.

  • With this, we would also understand how an e s p dot net core application is started.

  • And what are the fires that are involved?

  • So let's get started with all of that from the next radio.

  • When you open a publisher Studio 2019 it displays a nice page on the left.

  • Inside, you can see all the projects you were working on and on the right.

  • Inside, you can see options to create a new project.

  • So right here were quick on create a new project.

  • And once you do that, it will display all off the templates that are available out off this we will select a sp dot net court replication.

  • If you do not see on the top few options, you can always search for the temperate on the top.

  • Once you find the a SP Darknet court of a replication, let's hit the next button and we need a project name.

  • Let's call this Booklist Razor and will change the location.

  • I'll page the location, but I want to create this project after that will hit the create button and we'll have more options for our project in here.

  • The first thing to notice it's we have talked that core and the Dark Net framework.

  • We will be using the dark net core and what works and we want to use.

  • We want to use the latest version, which is a sp dot net core 3.1.

  • Once you select that, then we have few templates here.

  • We can go with an empty application and a P I project over application, which uses the razor pagers.

  • Or we can create an application with M V.

  • C.

  • Our mean project will be built using M.

  • V.

  • C.

  • But the first project.

  • I want to give you an introduction to raise their pages here.

  • I will display a crowd operations so that you can get comfortable with razor pages because that will be used inside the identity in our MVC application.

  • So we'll get a basic overview when we built this project.

  • Next we have the authentication here, you can select individual users account for authentication, but right now we do not want to do that because if you do that some off.

  • The things will already be configured for us, but I want to start from scratch in this project, so we'll just create a time application with razor pages.

  • Then, before proceeding will make sure the source is starting at core 3.1, and we'll hit the create pattern for effects.

  • With this, we have created our project and will be taking a look at all the files and folders that we created from the next radio.

  • In this video, we will take a brief overview on what are razor pages.

  • Razor pages have been introduced in sp dot net cord to window, and since then they have become the default way off coding With SP Dark Knight Coach Stack Razor Peaches is a new feature off a SP dot net core that makes coding page focused scenarios more easier and more productive.

  • They provide a simpler way to organize court with a SP dot net core applications, keeping the implementation logic and few mortals closer to the few implementation code.

  • Raising peaches is not just for simple scenarios.

  • Everything that you can do with NBC, you can do the same using razor pages like routing models, action result tag helpers and so on.

  • Finally, razor pages have two parts.

  • First is the U.

  • Y, which is more like the view in M V.

  • C.

  • And then we have the page model, which is a combination