Introduction to ASP.NET Core MVC (.NET 8)
HTML-код
- Опубликовано: 29 июл 2024
- Support more free content? ☕ Coffee: www.buymeacoffee.com/bhrugen
Snippets for the Course : www.dotnetmastery.com/Home/De...
In this Introductory course, we will learn MVC (Model-View-Controller) with .NET 8.
When we are working with .NET Core Web Applications, there are two common ways of building website.
1. MVC (Model-View-Controller) Web Application
2. Razor Pages Web Application
In this course we will learn the basics of .NET Core (.NET 8) and then learn basics of MVC and Razor Pages as we enhance MVC Application to a more complex final project!.
To see more in-depth full courses go to : dotnetmastery.com/
Full Course [17hr+ content] - www.dotnetmastery.com/Home/De...
GitHub Link : github.com/bhrugen/Bulky_MVC/...
All GitHub Repo: github.com/bhrugen
Topics Covered
- Fundamentals of .NET Core
- MVC Application
- Razor Pages
- Entity Framework Core
- Repository Pattern
- ViewBag
- ViewData
- TempData
- Toastr and sweet alerts in .NET Core
- Datatables in .NET Core
- Assignments
- Errors and how to solve them!
Because of the extensive length i could not break out all sections but below you will find the section breakout timestamp.
⭐️ Course Contents ⭐️
⌨️ (0:00:00) Section 1 - Welcome & Getting Started
⌨️ (1:06:53) Section 2 - Category CRUD Operations
⌨️ (3:36:22) Section 3 - Razor Project
⌨️ (4:19:04) Section 4 - N-tier Architecture
⌨️ (4:57:36) Section 5 - Repository Pattern
⌨️ (5:48:38) Section 6 - Product CRUD
⌨️ (7:49:08) Section 7 - Home and Details Page
⌨️ (8:05:00) Section 8 - Identity in .NET Core
⌨️ (9:25:19) What's Next?
15:08 Tools needed
26:33 wwwroot folder - all static files go here (images, CSS, JS etc.)
28:59 appsettings.json - all secret keys go here
31:14 Program.cs file - starting file of the project
41:30 Routing
48:20 Views that correspond to a certain controller are locatted in Views folder.
1:07:58 Create a model - class with certain properties
1:10:19 Data annotation
1:13:17 - Connection to a DB
1:14:00 - Download package using NuGet
1:17:15 - Project file has the list of all dependencies
1:17:56 - Add connection string to a project
1:23:03 - Configure the connection to DB with Entity Framework
1:35:49 - Create table with Entity Framework
1:45:38 - CRUD operations
1:57:21 - Get data from DB and pass it to view
2:02:25 - Display data in the view
2:11:17 - Add CSS Bootswatch css file (modified bootstrap)
2:18:22 - Create new category (click on button)
2:29:15 - Bind form data
2:33:21 - Add data to DB via post method in form
2:37:09 - Redirect to a certain page after clicking "Create"
2:38:49 - Form validation
2:45:28 - Custom conditions for validation
2:53:42 - Client side validation
2:58:45 - Editing
3:15:46 - IMPORTANT NOTE WHEN UPDATING RECORD
3:18:46 - Deleting a category
3:23:39 - Notifications with help of TempData
3:27:13 - Create a partial view for dispalaying TempData notifications
3:30:52 - Using Toastr for Notifications
3:37:12 - Using Razor pages instead of MVC stuff (Also shows how to add another project to the solution and set it as a run project)
3:38:58 - Differences between MVC and Razor pages
4:19:04 - Create DAL - Data Access Layer. Separation of concern.
3:33:20 - Puting the files from monolith APP to separate apps: DataAccess, Models, Utilitiy
4:43:09 - Migrations
4:46:19 - Dependency Injection Lifetimes
Please complete this list. it is very helpful while watching this tutorial and taking notes. Thank you
thnx bro
Is there an API in this video?
@@mrfuxoz8554 This is all about MVC. I think you need to find a video on .NET Web API
53 minutes in, and I refunded the stupid course that I bought on udemy from Neil Cummings. He may have very high point averages, but he does NOT explain things like you do here. I appreciate that from the buttom of my heart, thank you, I am looking forward to completing this 9 hour journey and hopefully, I will FINALLY get a good understanding of .Net.
What's your experience of this video?
@zanngoc is the video having full content
Possible if asp using with c#?
Neil is indeed stupid ..i bought his course ..then tried to return ..but it couldn't
How to refund bro?
6:10:40 Add DB Foreign Key using Entity Framework Core
6:20:00 Create enumerate list select with viewBag viewData
6:44:00 Add file type data type
7:25:00 Create Search bar, pagination with list
thanks!
I usually never comment on videos, but you deserve this comment. I am 1 hour into the video and I already love it. You explain everything in a simple and easy to understand way. And when I say everything, it's literally everything, which is really important. I pay for Web Development courses and they just don't, I have to look on google what certain things do, how to do stuff etc and yet here you are with this video making everything fall into place. Thank you! ❤
Absolutely fantastic tutorial. I've lost count of the amount of tutorials I took trying to understand ASP. This one did it for me. Thank you for this. It is much appreciated.
7:03:22 i ma having an issue on this place where i cant pass the image to controller although i set the --name="file"-- in input and controller also has --IFormFile file-- but the controller file is showing null.
Can anyone assist me please.
"LET ME SHOW YOU THAT.... IN THE NEXT VIDEO🥰🥰🥰" : is a punchline I'll never forget, loved his gentleness so much🥰
and...perfect
Can’t than you enough.🎉
Clear, precise and easy to follow.
I knew only Mosh at this level of clarity in the explanation but you’re a rock..
I have been a teacher for many years and I am fascinated by how each element is explained and linked step by step. Simply spectacular.
I have followed the video step by step, 2:30 in, totally engaged.
Incredible Human...! Sir you're simply great without money minded. If someone else made this video, surely they'll Charge huge amount for it....!
This tutorial is fantastic! Thank you so much for sharing your knowledge. I hope you receive many blessings!
I had to subscribe to this channel just done 2 hours and have learnt a lot. Great tutor, great tutorial.
1 hour joyu . maja avi gai :) ghanu badhu samjai gayu.. very informative sir. hu ahi thij ghanu badhu samji sakis. thank you Patel Sir.
Simple English , Simple explanation, Simple everything. I have downloaded a lot of MVC Core videos and after coming across your video I have since deleted all of them. I am only left with this. This is the best MVC Tutorial I have seen on youtube. I want to watch this video many times until I understand everything. God bless u
I recently graduated from a C#, .NET Full Stack Bootcamp. I had a great background from them and everything you said made sense...but the way you connected the dots and fleshed out my previous learning was awesome!! I was an educator before taking the leap into Programming and I will say that this is a wonderful educational course by a very talented instructor. Thanks for all you do!
Totally agree.
hey brother can u guide me i have a knowledge of C# basics. should i jump in to these course or should i learn more things before diving into these course? plz guide me
What an extremely clear explanation of things. Love it, amazing work!
You have explained everything in excellent detail.. Your explanation is nice to start with.
Dear Sir , you are my dot net core guru sir 💯💛 ....i have learned easy many complex dot net things from your videos ....love from chennai , Tamilnadu , india sir
most tutorial videos says it was a beginer or introductory tutorial but in videos they assume you know everything they don't bother to explain details or small concepts however it's those small stuff causes beginners to confuse and cannot grasp the whole picture. This one is the REAL introduction or beginner friendly tutorial. Teachers or tutors or other tutorials creators should be like him.
Is this really for beginners?
I mean I am a complete beginner in .net
What a great masterpiece you are. I have done your Dependency INJ and asp 6 Razor page course. Honestly, it was incredible and the best dollars I have spent so far.
Also taking the time to appreciate that you are making the contents free for everyone to learn.
thank you so much for such a feedback!
@DotNetMastery Sir kindly upload the remaining part of this series
Hi, Master! What you're doing is really incredible! I have been trying for a very long time to find courses that would give me a complete understanding of how commercial products are written in a structured form! I will look forward to even more courses from you!
Thank you so much for the feedback!
I agree. Of all the videos I have I have watched, this is te best. Simple, articulate and easy to follow. I already feel like a super programmer!
@@ghoverhn001😂😂 yes me too
Excellent tutorial, one of the best that I've seen on youtube. I even bought your course on udemy.
I liked this so much I found it on Udemy and purchased it there. I wanted to make sure you got some coin from me for your hard work. Keep it up!
I am new to ASP .Net, but what i have learnt from this your video tutorial is immeasurably superb.
thank you for what you do.
sweet blessings
1:18:15
Love the content of the video and how you explain things. Makes learning DotNet soooo simple and more enjoyable.
thank you so much!
Watching your video first time, the way you teach so complex topic step by step and gradually is fantastic and i like when you say viewer to not worry if not digested or understood the complex thing.❤ from Pakistan 🇵🇰
glad you are enjoying the course!
Just one hour into this video, and I want to say amazing content, Just WOW. I am going to complete this tutorial.
Have fun!
Best tutorial and mentor, thanks for this video, lets go to advanced mode!
4 Hrs completed! So far exciting the way you are teaching, your high spirit, enthusiasm, and way of narrating, all just awesome! Hope you come with APIs, MicroServices, with ReactJs, etc.
Thanks!
I have RUclips courses on react and API!
@@DotNetMastery Completed Tutorials ! Best Of the Best one ! Thanks sir!
@@DotNetMastery hello, how could I find the courses on react and API?
You are a great teacher! Thank you very much for your job!!!
I always consider you my inspired in programming especially in DOT NET framework. I really appreciated your helpful explanation
Great to hear!
This is amazing. When I get some money I will buy you a coffee for sure.
This is most useful course for Developers and juniors!
Insane Tutorial -> I'm in a new journey and this is just a live saving. Thanks a lot
Your udemy course has redirected me to this gold. Your content speaks for you, thanks!
you are an outstanding teacher! I'm a complete beginner and I understood everything one hour in. thank you and I'm so excited to finish this course!
You're very welcome!
@@DotNetMastery I agree, I had taken an mvc course before and we built a quora like app, but I really didn't get it until I watched this course, and now I can finally finish my own project. Thank you so much.
This tutorial is perfect! Bravo!!
very good course, i recommend
it's normal to search some details outside the video but this one teaches the basic stuff you need to know
Very detail oriented tutorial. Perfect!!!
Thank you sir! Really helpful videos! I got my job Thanks to you! Really appreciate what you are doing.
So happy to hear that!
thanks, this course helped me alot, in creation of new project.
In all aspects, this is one of the best videos. Thank you sir!
Glad you liked it!
Indeed your tutorials are "complete", you are genuinely a master to teach
thank you so much!
Best explaination of MVC ever🔥🔥🔥🔥
Thanks for the free and amazing tutorial! I learned a lot!
You're very welcome!
Thank you!! I can’t wait to purchase more of your courses.. I’m always checking Udemy weekly for new courses made by you. The love the stripe e-commerce courses, maybe next time you build a stripe e-commerce courses would you kindly mind showing how to manage stock of products when a user orders a certain quantity?
Just completed this course what an amazing experience. Now trying to make another web-application.
Fantastic!
you got very cool brain and relaxing teaching skill , love it !!! very thankful to you sir !!!
Thank you for the feedback
Thank you Bruhgen! Amazing video!
Simple, clear explanation from the base without any fuss. Thank you very much for this outstanding course.
Hi I am new to dotnet framework what should i learn i am lil bit confuse should i learn .net core mvc or .net 6 or this one
@@taskeen_fatimaa start with this course and follow up to the CRUD operations section and master that first. I have a very long experience in WinForms and .NET and even for me is dependency injection hard to follow. Focus on .NET Core. .Net Framework gets depreciated over time. Don't waste your time with it.
I wouldn't go with a .NET 6 since now the LTS (Long term support) version is .NET 8. This tutorial is a great way to start with ASP .NET Core MVC
@@timk232 okay I got it thankyou so much
Hats off❤.. lots of love and respect.
Quality content nicely presented and explained..
Thankyou ❤❤
Amazing course. This is my third course of Bhrugen.
Thank you for the wonderful feedback!
Amazing tutorial. Gathered lot of knowledge. Thanks for doing this.
A great full course. Thanks a lot ❤❤❤
Thankyou so much for such an amazing video. You have explained everything so wonderfully and included all the necessary topics. Really appreciate your efforts.
Glad it was helpful!
i am 3.20 in. i am facing an issue .On button click i wanted to delete the record there itself not create a separate view for it.
-i created a button for that purpose
Del
-Clicking on the Delete button calls the below code
[HttpPost, ActionName("Delete")]
public IActionResult Delete(Category objCategory)
{
//code to delete
}
-modification done in the form
but i am not able to get the selected id . as asp-route-id="@obj.Id" is not working i tried various ways but no luck can you please please help.
@@DotNetMastery
Hi can someone tell me what to do when the infor you're putting on the front-end doesn't show up in your controller? I'm trying to create a new Product from around 6:38:00 in the lecture, but my ProductVM is null.
sir - this is the greatest tutorial on youtube
Glad you liked it
i follow you sir for how to master of dot net core!
thank you so much sir!
Can you please tell me why you used ICategoryRepo interface instead of it's implemented class in the constructor of categorycontroller
@DotNetMastery I love it the way you explain it in simple manner...😍😍😍
Perfect, that looks good!
Nice project. Thank you very much!!
Best Tutotial of All time
Hi.
Great session about MVC .
I have some doubt.
What changes are required to update the category column to get multiple values in the UI.
Can you please explain
At 6:41:55, why do the validations still appear if we marked categoryList, ImageUrl and Category with [ValidateNever]? I have been searching for an answer online, but I can't really find what I want.
Thank you for that
I have a question, how do I deduct the quantity of the purchased product from the total quantity in the database?
You are a good teacher my brother!
I appreciate that!
Thank you, you are my favorite teacher. I Love you ❤
Thank you! 😃
[DROPDOWN IN NAVBAR] 5:47:40
[Time Stamp] 4:33:22
[Toaster JS Libaray] 3:34:42
[Bootwatch & CSS] 2:11:09
[Downloading nuget] 1:16:32
6:38
Thank you for given time stamps. I feel that without code first model, entire application may implement Database First Model is good idea 😃😃😃
Thanku Sir for sharing this much knowledge without a single penny 🤝
My pleasure
thank you so much! This video is exactly thing what I need now
Glad it was helpful!
Can I ask what extensions are you using for the intellisense for the html code on views.
3:16:41
can you please tell me why it is populated though there's no hidden field storing the value of Id ?
Very rich content . Thank you
Your teaching method, explanation, presentation is of next level. The amount of effort you put to prepare this much content is not explainable.
I watch first 4 sections in on GO almost 5 hours.
If possible please upload the next part to make this series complete.
Thank you so much :)
Love from Peshawar, Pakistan
Its just incredible, Thanks a bundlee 🌸
Thank you so much that was very helpfull❤❤👏👏
Extreamly Super Class!!!!!
If I want to add API functionality with JWT authentication in this project , How to do ?
Fantastic tutorial just superb!!
Your explanation us superb everytime i confused.Now its clearly understood
Glad to hear that
Thank you very much. Its really helpfull.i appreciate your courses
So happy to hear that!
This tutorial is fantastic!
04:57:35 IReposirty
05:15:40 - where i stopped with this repo.....
05:45:40 - demo of repo....
05:46:27 - Drop down menu
05:48:35 - PRODUCT CRUD
Thank you very much 🥺
Hugs from Brazil, you really helped me with my studies ❤❤
Oi, Tainá! Como estão os estudos em DotNet?
@@programadorautodidata olá! Estão indo muito bem! Estou desenvolvendo meu TCC com ASP.NET Core MVC! Apesar das dificuldades está dando certo!
@@tainavalentimdelima8404 que legal! Comecei a estudar C# recentemente e tenho interesse em aprender esses recursos do DOTNET. Você tem LinkedIn?
@@tainavalentimdelima8404 que legal! Comecei a estudar C# recentemente e tenho interesse em aprender esses recursos do DOTNET. Você tem LinkedIn?
Thank you very much for your videos.
Great explanation!
You created some data in modelBuilder and after that you executed Add-migrations seedcategorytbl so to update data we have to use seed keyword before table name ? As earlier using Add-migrations command new table was created so what is logic here it has inserted data.
Thank you master!!❣️❣️
You are very welcome
I have purchased a course with you on Udemy. You are the best.
thank you for the feedback!
Thankyou for this video uploaded for free. ❤
You're welcome 😊
Can I use .net 6.0 and follow up with this video or things would be different for that case??
6:13:40 my database is not getting updated {Failed executing DbCommand (19ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
ALTER TABLE [Products] ADD CONSTRAINT [FK_Products_Categories_CategoryId] FOREIGN KEY ([CategoryId]) REFERENCES [Categories] ([Id]) ON DELETE CASCADE;} and {The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Products_Categories_CategoryId". The conflict occurred in database "Bulky", table "dbo.Categories", column 'Id'.} getting this 2 error i dont hnow why i am getting this error
Excellent tutorial
Thank You sir this project good help for me and also I have completed
Hello there, thanks a lot for your content. It is really helpful. I have a situation and was wondering if you could help me. I downloaded Dotnet 8 preview 3 but when I create the mvc project the visual studio does not show Dotnet 8 as a target framework. Do you have any idea on how to solve this?
Please download visual studio 2022 preview
You are a lifesaver ❤
Thanks for this super tutorial
This tutorial is fantastic............
Absolutely fantastic tutorial. thank you very match.
You're very welcome!
hello sir, I am trying to implement the same for the in asp.net mvc , but i couldnt get toastr notification may I know what is the problem?