Introduction to ASP.NET Core MVC in C# plus LOTS of Tips

  Рет қаралды 329,051

IAmTimCorey

IAmTimCorey

Күн бұрын

ASP.NET MVC is still one of the most popular web frameworks for C#. So what has changed in the .NET Core version? In this video, I am going to walk you through how MVC is set up, how authentication works, and how it is different from the .NET Framework version of MVC.
Which ASP.NET Core course is now Getting Started with ASP.NET Core*: www.iamtimcorey.com/p/getting...
Mailing List: signup.iamtimcorey.com
Source Code: leadmagnets.app/?Resource=MVC...
* The Which ASP.NET Core course is no longer sold on Udemy. It has been updated, renamed, and is now sold on my site with the rest of the courses.

Пікірлер: 446
@bluustreak6578
@bluustreak6578 Жыл бұрын
Bootcamps tend to just show students how to do things without telling them WHY, probably to save time. But by explaining things so that you understand, you save SO much time. At least 90% of time is saved by teaching properly and competently like you do.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Thank you!
@FlorinAsavei
@FlorinAsavei 4 жыл бұрын
19:11 "The real world is not a demo" - real words of wisdom right there
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks.
@kopilkaiser8991
@kopilkaiser8991 7 ай бұрын
I am following you on a regular basis. The only one reason, you explain in detail, not over complicatinf the topic, and keeping everything to point. I was able to understand and apply it practically without any issues. Obviously, at times I struggle, but re-watching that certain again, helps to understand it way better than I had initially understood. 😊 So far, your tutorials are always the best in that area available amongst other sources ⭐️⭐️⭐️⭐️⭐️
@christopherbaldwin1194
@christopherbaldwin1194 2 жыл бұрын
Tim always has the best tuts! Voice is calming and his videos are presented so perfectly!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thank you!
@travispandos7179
@travispandos7179 3 жыл бұрын
Tim, you are amazing. I’m just now getting into the C# / WebDev scene and hope to one day land a job in this field. You have been such a great help with so many things! Thank you!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thanks for trusting Tim to help build your skills.
@sospetermongare96
@sospetermongare96 2 жыл бұрын
Hi travis, Did you begin C#
@mthokozisimtolo8910
@mthokozisimtolo8910 3 жыл бұрын
This is an amazing video. Thank you for the concise introduction. This kind of clarity really goes a very long way.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad it was helpful!
@cramzgaming4483
@cramzgaming4483 3 жыл бұрын
Thank you for spending time on getting into the configuration settings and not just jumping into the MVC pattern information. Great content. Subbed!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You're very welcome!
@toddnashville7371
@toddnashville7371 3 жыл бұрын
Been coding since the 80's. Started with RPG I & RPG II and all it's evolutions until 2012 when I made the move to .NET and VB. Spent the last 8 years developing and maintaining web service linking our backend with our web presence. Now our company is shifting to MVC and C#. Both of these are new to me and these videos are just what I need. Lots of information with explanation and at a pace where I'm not constantly going back to see or hear something over and over to understand it. Looking forward to watching some more videos
@regularguy6719
@regularguy6719 3 жыл бұрын
how is the industry going?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I am glad my content has been helpful.
@khana.713
@khana.713 3 жыл бұрын
Found your channel today, great source of information ranging from for people who are beginners to graduates. Thank you for all the good work :)
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are most welcome. Thanks for watching.
@benstechandgaming
@benstechandgaming 2 жыл бұрын
I appreciate the guiding words about "the right way". As a developer with only about 4 years experience, I am constantly still learning better ways, but I find I am the most successful when I grind through the problems, teach and learn myself in the code. If I tried to do it "the best/right way" the first time, I'd never get anywhere, due to my skill level, but as I dive in and progress my skills I feel more confident that I am closer to "best practices". Thanks for your great videos!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@chetan_mali
@chetan_mali 4 жыл бұрын
Finally!! Thanks Tim, Need more videos on this😊
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@zoltan.halasz
@zoltan.halasz 4 жыл бұрын
Thanks for the presentation, it is very clear, focused and educational. Waiting for next part.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Glad you liked it!
@jeremiasalvarez4335
@jeremiasalvarez4335 4 жыл бұрын
The most amazing part of your channel, apart from the amazing tutorials you make, is seeing how fast VS works on your computer. You should make a guide on that subject as well 👀.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I can add that to the list. Some of it is video magic (I pause the recording during long-running tasks) but most of it is just a good development machine.
@christopherbaldwin1194
@christopherbaldwin1194 2 жыл бұрын
Yeah I use a gaming computer to develop on. Lots of memory and crisp visuals. The curve monitor is nice too. Only problem is I type like a maniac and my wife wakes up to the mechanical keys going a thousand clicks a second lol
@umerchohan3468
@umerchohan3468 3 жыл бұрын
Brief introduction to Asp.net core. Thank you. I was finding this type of tutorial.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad it was helpful!
@makgatoselaelo
@makgatoselaelo 4 жыл бұрын
I have started a course on ASP.NET and this course comes at the right time of my learning period. I have learned quite a lot from your C# subscriptions. Selaelo Makgato (South Africa)
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Great!
@Fasiibcs
@Fasiibcs 4 жыл бұрын
Before watching this video, I love to see this from your side, as I requested you this alot. :-) It will be a great video and please make more video on this topic.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks for your vote.
@1983saulomoreira
@1983saulomoreira 3 жыл бұрын
He explains everything so well, really nice.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thank you.
@wisnu7734
@wisnu7734 3 жыл бұрын
@@IAmTimCorey hi tim...when ConfigureServices method is invoked in production mode ?...is it invoked at every request coming ? Or is it invoked when user open the site on the first time from web browser and it invoked again when another user open the site ? Or is it invoked once when application is begin start in web server like IIS ?
@kelvinpatrick8435
@kelvinpatrick8435 2 жыл бұрын
i dont mean to be so off topic but does any of you know of a method to get back into an instagram account? I was stupid forgot my login password. I appreciate any assistance you can offer me
@edwindaxton175
@edwindaxton175 2 жыл бұрын
@Kelvin Patrick instablaster =)
@kelvinpatrick8435
@kelvinpatrick8435 2 жыл бұрын
@Edwin Daxton thanks for your reply. I found the site through google and I'm trying it out atm. Looks like it's gonna take quite some time so I will get back to you later when my account password hopefully is recovered.
@Anuradha-ym6zd
@Anuradha-ym6zd 3 жыл бұрын
Great video as usual Tim! You are an awesome teacher who explains every concept with such great clarity. All your videos have been a big help. Thank you ! Can you please make a video on OAuth and OAuth 2 authentication?
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thanks for the recommendation. I have added it to Tim's list of viewer suggestions for videos.
@jimmydavila7196
@jimmydavila7196 4 жыл бұрын
Good tutorial, very well explained. Keep up the good work. Thank you!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@prabdeepdhaliwal9725
@prabdeepdhaliwal9725 3 жыл бұрын
Very in-depth video explaining ASP.NET CORE, appreciate it and had to subscribe
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Welcome aboard!
@gerloeskebrezet4440
@gerloeskebrezet4440 3 жыл бұрын
I am following a traineeship application/software engeneering. I've had no experience in programming before I started. I started out with PHP and am now starting with C#. This video really helped me a lot in understanding what all the 'pre-written' files mean. Thank you very much! I wil defenitely see some other of your video's!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
If you have not seen it already, check out this video - "Full C# Tutorial Path for Beginners and Everyone Else" (kzbin.info/www/bejne/gobZY2OHrb2dnNk)
@Algedibarrios
@Algedibarrios 4 жыл бұрын
Excellent video! Great advices! Thank you very much for your videos!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Glad you like them!
@marcusreinicke7352
@marcusreinicke7352 4 жыл бұрын
Thx for this Video!! All your Videos and Information are great stuff!! Thanks for it!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@luisc1794
@luisc1794 4 жыл бұрын
Great Video. yes, I would like more videos for the topic of two different tables, one for identity, thanks
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks for the suggestion. You can see this in action in the TimCo Retail Manager application (the API). I'll also do a specific video on it most likely.
@Xerxes17
@Xerxes17 2 жыл бұрын
Liked and subscribed because the instruction is clear, paced well and concise.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Excellent! Welcome aboard.
@kochalia
@kochalia 4 жыл бұрын
Great videos. Now everythink is more clear. More MVC tutorial, please
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks, will do!
@esitemim1
@esitemim1 2 жыл бұрын
thank so much for explaining the mvc application. So helpful for me to start learning.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Glad it was helpful!
@StephenBeale
@StephenBeale Жыл бұрын
Doing this today in MVC Core 6, there is no startup.cs - was loving this until then. Got a little lost but now see that it's essentially all now covered in Program.cs - phew
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Here is a video showing you how to adjust to no Startup.cs: kzbin.info/www/bejne/rJXLd6pni7iirck
@neanderthal5784
@neanderthal5784 3 жыл бұрын
Tim, great tutorial, thank you very much.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Very welcome
@bartomiejciurla8472
@bartomiejciurla8472 3 жыл бұрын
Good job! Thanks for the video. Greetings from Poland
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@CodeSbyAniz
@CodeSbyAniz 3 жыл бұрын
You have explained it very nicely. Thanks.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are most welcome
@mangesh2215
@mangesh2215 3 жыл бұрын
Appreciate your efforts Tim!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
My pleasure!
@rayvoigt5793
@rayvoigt5793 2 жыл бұрын
Thanks for the video. Need to quickly learn MVC for a demo I'm presenting, so this was great. I didn't even consider the options for asp.net core vs .net framework for MVC. I guess I'll learn both and see which will be the option I choose for the demo. Thanks again for the videos.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome. And if you are learning either way, I would highly recommend ASP.NET Core MVC.
@earlgrey11
@earlgrey11 3 жыл бұрын
Great video Tim! I'd like to see more information about data access with MVC
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@achrafsaaoud8233
@achrafsaaoud8233 4 жыл бұрын
Love your explanation Thank u so much
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@alexanderspiegel6747
@alexanderspiegel6747 3 жыл бұрын
it was really interesting as always. Спасибо very much
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad you enjoyed it!
@steve-wright-uk
@steve-wright-uk 4 жыл бұрын
Great video - like the style - Any chance of Authentication and Identity?
@YoloMonstaaa
@YoloMonstaaa 4 жыл бұрын
I'd like this too
@troymitchel4790
@troymitchel4790 4 жыл бұрын
I'd also like this. This would make a nice Udemy course :)
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I can add this to the suggestion list.
@ivanpesenti1138
@ivanpesenti1138 4 жыл бұрын
Hi Tim! First of all, thanks for your time and for the great video. If is possible, I would like to see a tutorial on a project in which you use both Dapper for getting data and EF Core for managing data. I'm curious about see it in action and the best practices in your opinion to follow. All bests, Ivan
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
The TimCo Retail Manager project uses EF for the Identity database and Dapper for the "regular" data, if you want to check that out. Thanks for the suggestion.
@DiogoSantos-fq8oy
@DiogoSantos-fq8oy 3 жыл бұрын
Hey Tim. Great video! Question: in theory, is it bad to have some sort of business logic on the controller? Let's say for instance, that I have a microservice that follows this MVC structure, and the controller itself has actions that map to a regular Rest API scenario, with http protocol (GetAll, Get, Post, Delete). In this example if my Post needs to be a little more than just a Post (imagine that for some performance reason, I prefer doing a Get to find out if the content already exists, before actually doing the Post), it seems that I would have to either call the Get action from this controller first, or call the underlying layer's method that my Get method from this controller calls. In your opinion, is this logic valid in the controller?
@hrvojevoda4910
@hrvojevoda4910 4 жыл бұрын
Great video! I started working in .net core mvc and I think it's a great way to do things. Maybe I'm wrong but still.. I would like to see more about connecting controllers with views and getting data from database. I like using Dapper so I prefer that king of database communication.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@keyursoni1682
@keyursoni1682 3 жыл бұрын
Worth to watch .... Thanks Tim...
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thanks
@elodiefang5986
@elodiefang5986 3 жыл бұрын
very helpful for beginners
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Please consider viewing my video to help you plan your learning path - kzbin.info/www/bejne/gobZY2OHrb2dnNk
@backroomrockstar
@backroomrockstar 3 жыл бұрын
Great vid - I'm pretty sure I'll be paying for your courses 👍
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thank you!
@imadabab
@imadabab 4 жыл бұрын
Thanks a lot. Good video to start with.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@Algedibarrios
@Algedibarrios 4 жыл бұрын
You are a great master!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thank you very much!
@joaomarcelomenezes9121
@joaomarcelomenezes9121 3 жыл бұрын
Hello Tim, great video as usual! I have a question, which I hope makes sense (English is not my first language): you said you are not a big fan of MVC. Could you explain why? And what Web Project type do you prefer over MVC? And again, why? Thanks, cheers!
@ORagnar
@ORagnar 2 жыл бұрын
I know you're question is a year old, but I'd love to see an answer to this one as well. Makes me wonder if I'm wasting my time. 5/19/22, 10:25 a.m.
@j2csharp
@j2csharp 3 жыл бұрын
Outstanding! I was disappointed to hear you say that learning MVC was necessary, since most businesses are still 5 years behind. I've been learning the newer stuff because I did not want to go backwards in my learning path. But you speak the truth here... Reality is, I'll likely be converting a legacy MVC app with my next assignment. So I better know something about it. It's nice that you're showing some of the differences to be aware of. Thank you!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thank you for re-enforcing the real world experiences here.
@N41Ryt
@N41Ryt 2 жыл бұрын
Thanks a lot man, now I'am ready to develop my first app!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Awesome!
@ravishchauhan1
@ravishchauhan1 4 жыл бұрын
Thanks sir, Really a Great video.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are most welcome
@Otonium
@Otonium 9 ай бұрын
I'm refreshing some (and still learning) old topics, foundational as this one. In 2023 in VSIDE2022 the workload creates a unique Program file. Trying to figure out the changes. There's a video about that. Thank you as always for your quality content Tim.
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
You are welcome.
@mikecurry2903
@mikecurry2903 2 жыл бұрын
Great video. Learned a lot. Your style is great. Maybe save the 'soap box' portion for a separate video, but much learned and much enjoyed anyhow. Thank you.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That's all part of the context of the topic. Learning about the real-world use, dangers, and pitfalls is important in order to actually be equipped to take this topic and apply it to your job.
@99MrX99
@99MrX99 4 жыл бұрын
Great video, thanks. You said MVC is not your favorite asp net option, I am curious what you favorite option is.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I covered that in my Which ASP.NET Core course (link in the description) but I think that for a lot of cases, Blazor Server is the better option (easier, faster to developer, just as fast to run, less complicated, etc.)
@troymitchel4790
@troymitchel4790 4 жыл бұрын
Nice job Tim!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks!
@darrellchilders7079
@darrellchilders7079 3 жыл бұрын
Thanks, Tim! I so wish this video had been available 6 months ago when I started developing my first MVC Core 3.1 app. Just knowing how to create the app and some of the selections you made, and showed that were available, would have saved me tons of work. I really don't like MVC, it seems like a lot more work is required to do the simplest things compared to C# .Net web forms (which is what I've been developing in for the last 16 or so years. Looking forward to watching more of your videos on MVC Core 3.1.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Great!
@sawuk
@sawuk 3 жыл бұрын
Great video Tim, I'd like to see how to run API alongside MVC, in one project. So that a mobile app can call webservices from the application.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You got it! Added to my suggestion list.
@mohammadovmemmon
@mohammadovmemmon 3 жыл бұрын
Kindly please upload the video related to the data access layer how we can create and implement it and also provide a little bit of information regarding how to use identity framework with user management for example how we handle user management with roles and rights in it. Thank you.
@JZO001
@JZO001 Жыл бұрын
Thank you for the video, I really enjoyed it. The total new part for me, when you almost extracted the Identity view pages with the Scaffolding. I have done it on my side, now I see the views, I can customize them. Does it possible to extract the controller c# codes as well? I would like to learn from that codes and extend in some cases. Does the extraction possible?
@kristianpetkov
@kristianpetkov 4 жыл бұрын
@IamTimCorey one more great video!!! Where I can find the video/s about logging?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
The first three videos here will help: kzbin.infosearch?query=logging
@isachells9859
@isachells9859 3 жыл бұрын
My man. You are a savage and an absolute god. I wish i could support you further but i'm broke eating noodles studying code, nam sayn. Anyway, Thx a bunch mate and keep shredding that grit, Cheers from sweden
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I am glad my content has been helpful. No worries about not buying something. My goal is to help even more people like you.
@catarinaruna5085
@catarinaruna5085 2 жыл бұрын
Dear Tim, After creating a custom controller, I noticed that all the provided properties of the model are used in the auto-generated code; e.g. in my case: public async Task Create([Bind("Birthday,ID,Username,EmailAddress")] PersonModel personModel ) I thought this would mean that if we change the code in the model class, we need to search for and effect the changes accordingly, but then I realized if I want to keep using auto-generated code, I have to do all the same steps as when I am generating it for the first time, and then when it asks if I want to replace the old code with new code, I choose yes. Is there a better way of doing this, because this would overwrite my custom code every time. Particularly, when I store data in its local database, and then I decide to change a column name or add something, this would override everything... How do I go about this situation?
@tonycovarrubias5931
@tonycovarrubias5931 3 жыл бұрын
Thanks! Great explanations. Do you have any videos where you use VS Code versus VS2019?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
No, but I did do a video dedicated to showing off how to develop C# in VSCode.
@ahmedfattal9569
@ahmedfattal9569 Жыл бұрын
Thank you Tim so much for your nice tutorial! I have a question though, is this outdated tutorial or not?! Because I'm a little bit confused about which one I should start learn with? is it .net 5 or .net6 or .net7? Plus you've said MVC is not good as Blazor?! Thank you again!
@ruchamundhe3272
@ruchamundhe3272 2 жыл бұрын
Soooo much helpful
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Great!
@BoomerCovers
@BoomerCovers Жыл бұрын
Where is the database created? It appears to be created automatically somewhere but it's not in any folder nor is it in my SQL Server.
@daniellister4701
@daniellister4701 4 жыл бұрын
Another great video. Well done sir. I'll certainly be looking at the logging videos you mention. In terms of what I would like to see next for MVC: (apologies its a list) - best practices for HttpClient - particularly how to interact with Data Models - when should you use HttpClientFactory over HttpClient - should you use private fields in conjunction with a Data Model? - request headers, I just dont get them, they're weird and convoluted, I dont like them, they should be banned under the Geneva convention... Thank you, I've learnt more from you, than I have in the 18 months of full time work as a Junior Developer! True story.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks for the suggestions. When it comes to HttpClient, here you go: kzbin.info/www/bejne/majKlJ5noJWMgbc
@daniellister4701
@daniellister4701 4 жыл бұрын
@@IAmTimCorey thanks for the suggestion. Currently watching with my breakfast 🤓
@lastidea4925
@lastidea4925 2 жыл бұрын
Which layer should keep the viewmodels and viewmodels' meta data annotation classes or fluent validation classes
@maroxesen1
@maroxesen1 3 жыл бұрын
I'd love a short tutorial on how to switch from thinking in MVC .Net Framework to thinking in MVC .Net Core.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad to hear it
@Balgoriusis
@Balgoriusis 4 жыл бұрын
Hi Tim, I was just wondering if you plan making a video on authentication(windows, api...) in .Net Core (blazor,Mvc...)?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
It is on the list. Not sure when I will get to it, though.
@mrahmedfuad2656
@mrahmedfuad2656 4 жыл бұрын
Amazing 🌷 🤣 Thank you... keep going
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@jallanenegeri5786
@jallanenegeri5786 2 жыл бұрын
10q soo much for the vidio,but what virsion of vscode were u using??
@survivalizer
@survivalizer 4 жыл бұрын
I really needed to watch this video before my MVC interview today lol my mistake.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Well, hopefully it will help you for the next interview.
@cenkhanyaloglu4480
@cenkhanyaloglu4480 3 жыл бұрын
lol, I have MVC interview in 15 hours. I am glad I came across this video now and his channel
@survivalizer
@survivalizer 3 жыл бұрын
@@cenkhanyaloglu4480 I honestly dislike MVC but I like it better than MVVM or webforms by a long shot.
@ariand.sialajulio7506
@ariand.sialajulio7506 3 жыл бұрын
You're the best of the bests, I never thought it could so easy🤤🤤
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I’m glad it was helpful.
@ariand.sialajulio7506
@ariand.sialajulio7506 3 жыл бұрын
@@IAmTimCorey Thanks Sr. Tim!
@jacobphillips9235
@jacobphillips9235 4 жыл бұрын
Great video, thank you! Any chance you're going to talk about "containerizing" (ticking that "Enable Docker Support" checkbox) a .NET Core MVC Web App? And on that note, any chance you're going to talk about a container "orchestrator" (k8s)?
@jacobphillips9235
@jacobphillips9235 4 жыл бұрын
i'm asking because i'm a professional developer (just hit the 2 year mark) who is currently being pulled more and more into DevOps / Architecture
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I will be covering that in the future, yes.
@jtorres140
@jtorres140 3 жыл бұрын
Hi, very good video. Thanks. I do have a few questions. How do you publish an ASP page, and once is published it where or how do you change the appsettings from development to production ?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I cover deployment in this course (www.iamtimcorey.com/p/getting-started-with-aspnetcore) as well as some about appsettings. I cover appsettings in a lot more depth here: www.iamtimcorey.com/p/net-core-appsettings-in-depth In general, deployment depends on the situation. Changing from development to production is as simple as not saying it is development (Visual Studio marks your app as in development when it is run inside VS).
@derekkoo7740
@derekkoo7740 Жыл бұрын
Do you have example how we seperate each view I to different project and load it using DI during runtime? I am trying to split complex system to ease the deployment
@jimlewis8025
@jimlewis8025 4 жыл бұрын
Tim - you mentioned that you are not a big fan of MVC? What do you prefer over MVC?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I covered that in my Which ASP.NET Core course (link in the description) but I think that for a lot of cases, Blazor Server is the better option (easier, faster to developer, just as fast to run, less complicated, etc.)
@jimlewis8025
@jimlewis8025 4 жыл бұрын
Thanks Tim! I will definitely watch that video.
@rabbiuniversal7472
@rabbiuniversal7472 3 жыл бұрын
i get a message that asks if you want to accept an IIS SSL Express certificate , i clicked no by mistake now the website can't be reached, what to do.
@moneyfresher3035
@moneyfresher3035 3 жыл бұрын
Hi Tim, Great tutorial. I have to develop a new project which is neither small nor too big. I am confused between .Net core razor pages and .Net core MVC. Can you suggest which user interface I need to select. ? Is there something that MVC has and Razor pages does not ? I do not not want to stuck up in the mid way.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
The good news is that if you pick one, you can add the other later without harm. Personally, though, I would recommend Blazor Server. It is the best of both worlds (client and server), it is fast, it is easy, and it will give you a great client experience.
@bookiemeow173
@bookiemeow173 4 жыл бұрын
Hi Tim, first thank you so much for all your videos. I have been searching, but maybe I overlooked. Do you have a video where you explain how to use MVC as the view and use class libraries for the logic and data? How do you make a connection between those layers? I am a beginner and really want to do this architecture the right way.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Here you go: kzbin.info/www/bejne/mHrMdqmVlLaBrtk
@bookiemeow173
@bookiemeow173 4 жыл бұрын
@@IAmTimCorey Thank you very much!!
@Rudek1212
@Rudek1212 4 жыл бұрын
Great video! Is there any chance to You will create video showing how to dockerize MVC app with database container?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Most likely, yes.
@pylvr8021
@pylvr8021 4 жыл бұрын
Thanks you boss 💪
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@brianhoskins1979
@brianhoskins1979 3 жыл бұрын
I am in the position of getting started with asp .net core for the first time and I ended up bugging out of this video half way through when I realised that I was probably better off checking out the "which asp .net core" course first so that I could understand the different types of asp .net core projects and which solution matches up best with what I want to do. So I've purchased that course instead. Onwards!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Great! I think you will get a ton of value out of it.
@senaszel
@senaszel 4 жыл бұрын
So great, fresh Tim. 8 th
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
+=3
@amazingalpha3674
@amazingalpha3674 3 жыл бұрын
Your Download Is On Its Way Thanks for your watching my video and requesting the additional resources. I hope you enjoy them. Where?.. And When?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thanks for reaching out and regret that you are having this problem. Please email Tom at Help@IAmTimCorey.com and he can get you that file. Identify the video so he knows which one to get for you.
@jacekpietrzyk7431
@jacekpietrzyk7431 3 жыл бұрын
Would it be possible to hear from you more about using dapper and entity together in ASP.NET Core for two Data/Identity databases? Great video!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thank you. I have added this to Tim's list of possible future topics.
@piotr6215
@piotr6215 3 жыл бұрын
Hi Tim! Great video, as always. But I have one question. Is it possible to use MongoDB instead of SQL Server in ASP. NET MVC or should I just stick to SQL?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Sure. You can use MongoDB and even use MongoDB with Atlas to move to the cloud.
@piotr6215
@piotr6215 3 жыл бұрын
@@IAmTimCorey thank you Tim!
@Cell4TR
@Cell4TR 3 жыл бұрын
Thanks!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@lightningbold1450
@lightningbold1450 4 жыл бұрын
Hey Tim, Thank you for the awesome video. You even partially answered a previous question I had asked surrounding ViewModels and DTO. Now I have two new questions from this video 😅 14.45 : You mention about using Identity with EF Core to store user credentials in one database and using Dapper to store the user data in a separate database. Now if we have enabled user roles through identity in our application, then will we have to do a special configuration for data access? 49.10: You speak about Email validation. Nowadays there are lot of temporary email providers which provide fake emails. You have any solution for this such as a third party to validate the email?? In the future I would like to see content about configuration of production based environments for deployment of finalized applications. BEST regards 🙂
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Look at the TimCo Retail Manager series. I set up the API to have authentication as well as a SQL database for the "regular" data that I access via Dapper. I restrict access based upon roles. No special configuration necessary for the data access. I just decorate the methods with the permitted roles. As for email validation, that isn't just checking to see if an email address is formatted properly. It emails the user and makes them click a link. If they are using a temporary email, there is not much you can do. I do have videos on deploying to Azure DevOps (again, the TimCo Retail Manager does that).
@lightningbold1450
@lightningbold1450 4 жыл бұрын
@@IAmTimCorey okay . Thank you😀
@akberaliakber
@akberaliakber 3 жыл бұрын
I love your videos. They are simple and to the point. Well you mentioned "MVC" is still a popular framework. What do u mean by still? what else? I understand there are SOA, and Web Services etc., but what other framework you recommend for making Web Apps.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I have a course on Udemy (for now) that covers the 5 different .NET Core web project types: www.udemy.com/course/which-aspnet-core/?referralCode=668AC17A9CEDF2067E69 MVC used to be the only good solution for a testable, stable web application. With .NET Core, we got five project template types - Razor Pages, MVC, API, Blazor Server, and Blazor WebAssembly. Of the five, the most general-purpose one is Blazor Server. It is a great solution to a ton of problems.
@Time21
@Time21 4 жыл бұрын
Thank you mr Corey once again for the awesome content you provide us. Can you probably do a WinForms video aswell? most of legacy code i see in companies are still using WinForms and ADO.NET. This could be usefull to anyone.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
In .NET Core? I've done a whole series using WinForms (the C# Application from Start to Finish course) using the .NET Framework.
@Time21
@Time21 4 жыл бұрын
@@IAmTimCorey didn't know that. I will sure check this out, thanks!
@amallkrishna
@amallkrishna 3 жыл бұрын
That was an awesome video. Keeping the identity and data database separate sounds good, however, what if I have a table in my data database that stores user-specific information? For instance, if I have an orders table in my data database, wouldn't it be difficult to create a cross-database foreign key to my AspNetUsers table? How would I deal with such a scenario?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
It is not difficult. You know the ID of the user. Use that as the User ID in your data table. I do this in the TimCo Retail Manager series.
@ukaszk2982
@ukaszk2982 4 жыл бұрын
Tim I'm wondering where is a place for business logic in MVC. You tell in library but how? For example I get data from form to data model and I put that object to dbcontext and save it in database. Where is the place to add some data manipulation function before saving it in db?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
This is where the layers get a bit tricky. Yes, there is room for business logic in your UI (and in your database sometimes as well). I just try to limit it to only what is necessary for display purposes. Otherwise, I move the logic down a layer.
@Darbokst
@Darbokst 2 жыл бұрын
Tim do you have a video on connecting to a cloud DB and displaying the tables already there?
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Watch Tim's newsletter because he will have something coming very soon to help you with this
@Greatfulone
@Greatfulone 3 жыл бұрын
Thank you for the content. I am creating my project on a Linux platform, and was wondering if I should setup MSSQL server in container/Docker or use an instance on Azure. Given that I am going to push the project to Azure at some time, the later is better. Do you agree?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You can start with MSSQL locally (it will install on Linux) or you can start right away on Azure. Since you are going to Azure, doing so from the start will make it easy, although I do recommend having a development database. Here is a way to use a production database as the source for a developer database (in Docker) automatically: kzbin.info/www/bejne/j5uZapaNeqySj9E
@Greatfulone
@Greatfulone 3 жыл бұрын
@@IAmTimCorey I am so pleasantly surprised to find out about email verification, and QR, and others that are already built in ASP.NET. Makes me feel like I made the right choice in spending time to learn it.
@PushkarThakar
@PushkarThakar 3 жыл бұрын
What is the alternative/equivalent for WebResource in .Net Core. I have a library that uses "Page.ClientScript.GetWebResourceUrl()". How can I implement this in .net Core library.
@lyndistech
@lyndistech 3 жыл бұрын
@IAmTimCorey Hi, Nice video. do you have any videos that uses the dotnet cli instead of visual studio? Cheers.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Check out my VSCode video. We use the cli there.
@haroldpepete
@haroldpepete 3 жыл бұрын
Great video, what do you preffer , if you don't like mvc
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I have a whole series of MVC and Razor videos - kzbin.infosearch?query=mvc%20razor As for what I prefer, I cover that in my Getting Started with ASP.NET Core course. Primarily it is Blazor Server.
@drsch3
@drsch3 2 жыл бұрын
"Even though it's not my favorite" got me. What is your favorite. I'm looking to move a way from WebForms in a company that is somewhat more than 5 years behind the cutting edge. What course or introductory video would you recommend?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Here is a video I did that covers the different C# web project types: kzbin.info/www/bejne/j5nSm4KffM96rLM And here is a full course where I cover all 5 ASP.NET Core web project types, how to use each (full CRUD operations plus deployment of each), and when to use each: www.iamtimcorey.com/p/getting-started-with-aspnetcore
@haimejoseph5210
@haimejoseph5210 3 жыл бұрын
Hi! Can I use this video as a guide when using NET 5 instead? I can't find a good introduction to ASP NET 5 and you really explain it well here so i'm wondering if there's a big changes in steps between using NET Core 3 and NET 5. Thanks and have a Merry Christmas!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Yes, this video still applies to .NET 5 MVC. The changes are minor enough not to be a problem.
@haimejoseph5210
@haimejoseph5210 3 жыл бұрын
@@IAmTimCorey this is a relief! thank you very much for replying. I just finished this and will watch more of your videos about c#. Thanks and Happy New Year! :)
@yasirmehmood9247
@yasirmehmood9247 3 жыл бұрын
Greate video Tim, really appreciate. But this surprises me that you are not a fan of MVC. Can you please share what is your favorite technology and how you will build a web application if you need to?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I outline the five project types and which is my favorite and why in this course: www.iamtimcorey.com/p/getting-started-with-aspnetcore The bottom line is that MVC was designed as the only real OOP option for the web back in the .NET Framework. Now we have options that are much quicker to build and yet still as powerful. For example, Blazor Server (my favorite for most situations) gives you the client-side responsiveness of a JavaScript UI like Angular, React, or Vue but it mixes it with the safety and protection of a server-side language like ASP.NET MVC or PHP. You get the best of both worlds, plus it is much easier to get data from C# onto the page and back in Blazor Server. Every ASP.NET Core project type has a purpose. MVC's purpose has just shrunk significantly. Now there is almost always a better option.
.NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
IAmTimCorey
Рет қаралды 538 М.
Climbing to 18M Subscribers 🎉
00:32
Matt Larose
Рет қаралды 22 МЛН
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 6 МЛН
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,5 МЛН
Brutally honest advice for new .NET Web Developers
7:19
Ted's Tech
Рет қаралды 42 М.
How to Become a Highly Employable C# Developer in 2024
17:47
Gavin Lon
Рет қаралды 13 М.
ViewModels in ASP.NET MVC applications - This is how it works
7:13
tutorialsEU - C#
Рет қаралды 16 М.
Every New Feature Added in C# 12
14:19
Nick Chapsas
Рет қаралды 147 М.
Intro to ASP.NET Core Razor Pages - From Start to Published
1:16:44
IAmTimCorey
Рет қаралды 348 М.
.NET Core 3.1 MVC REST API - Full Course
3:27:48
Les Jackson
Рет қаралды 954 М.