CRUD with Angular 14 & .NET 6 🚀 Web API, EF Core & SQL Server

  Рет қаралды 181,301

Patrick God

Patrick God

Күн бұрын

🚀 Join the .NET Web Academy: learn.dotnetwebacademy.com
💖 Support me on Patreon: / _patrickgod
🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: dotnet8.patrickgod.com
🐦 Let's get social on Twitter/X: / _patrickgod
🔗 Let's connect on LinkedIn: / patrickgod
💻 GitHub: github.com/patrickgod/SuperHe...
Udemy Courses:
🚀 .NET Jumpstart Course: www.udemy.com/course/net-core...
🔥 Blazor Bootcamp: www.udemy.com/course/blazor-w...
🔥 Blazor E-Commerce Course: www.udemy.com/course/blazor-e...
Table of Contents:
00:00:00 CRUD with Angular 14 & .NET 6 🚀
00:03:08 Create the Angular 14 Application
00:08:24 Add the Super Hero Model to the Client
00:09:35 Generate an Angular Service
00:12:10 Implement a Table to Show the Hero List
00:16:32 Create the .NET 6 Web API Project
00:18:07 Add the Super Hero Model to the API
00:19:04 Add the Super Hero Controller
00:21:38 Call the Web API from the Angular 14 Client
00:27:29 Enable CORS (Cross-Origin Resource Sharing)
00:31:42 Add Entity Framework Core 6
00:37:10 Add the Connection String for the SQL Server Database
00:38:40 Install the EF Core Tools
00:40:54 Register the DataContext in the Program.cs
00:42:13 Run the Initial Migration using Code-First Migrations
00:43:23 Get Super Heroes from the Database
00:46:08 Implement Create, Update & Delete in the SuperHeroController
00:53:56 Build a new Component with Angular (Edit-Hero Form)
01:00:57 Add the Edit-Hero Form to the Parent Component
01:04:06 Implement Web Service Calls on the Client
01:07:11 Call the Service in the EditHero Component
01:09:32 Update the Super Hero Table
01:10:20 Final Tests of all CRUD Operations
🙏MANY THANKS TO THESE LOVELY PEOPLE:
Daniel Viveros
Mehmet Ali Ege
Winther
harry j
@Alaffer
Sam Catlow
Jim
Brian Williams
Gonzo
Jonas
Ariel Sartor
Andy Benson
@stevelikespies
Raphael Lukas
James Goforth
@williamdevine
Doug Nelson
Arif Hasanov
@kohji1712
@dlb78dlb
Thomas Korsgaard
FastTrak
Jeff Sager
Dan Moyer
AlgoMarket
Mennskr
Simon
Michael Mel
Hermann Rösch
Jim McNeal
Kieron
@mgrainger231
Gerrit Esmeijer
Axel
Kareem Skinner
Joaquim
Alain Legrand
Per Rieland
@prodrigu75
Greg
Brendan Maunder
Stageoner
Andrew Campbell
pascalditzfeld
PovilasSimanskas
Ameet Jayawant
jenö
Marco Otilli
Mark
l33ter
alibux
g.dassel
Luke Vincent
mrcl
Alain Legrand
Thomas Werner
István Csibor
Grant Burdon
@gianluigiconti
Gerrit Esmeijer
Illia
Németh-Pók István
Michael Mel
Marko Zdilar
GerryB
@DADA_universe
Domen Hren
@heroesch
Carey
Peter De Tender
Baris Keskin
@Big_Bear_27390
Mathias
walter e watkins
Günther Dassel
Axel
Josh
Daniel Huber
Fredric Adell
Juan Carlos
Manolis
Pajani
P.
Jonas Granlund
Bobby
Kristina
@xamarin007
#DotNet #Angular #PatrickGod

Пікірлер: 228
@deja00
@deja00 Жыл бұрын
I am onto one of your courses again! It's great that you share these small insights into your private life. It breathes some life into the whole thing. As usual, I think this tutorial will be great :) We can really feel you when you sit there when your family is asleep.
@isachells9859
@isachells9859 2 жыл бұрын
Wow! Thanks for doing Angular stuff! It's such a common and powerful way to work. More of this would be amazing, Bless
@jeverydk
@jeverydk Жыл бұрын
Patrick, you are my guardian angel. Your videos are coming just as i need that specific theme or when i sit with a specific problem. Keep it up!
@piotrszponder123
@piotrszponder123 2 жыл бұрын
This is perfect, exactly the tech stack I am trying to learn at work!
@chmouelkessous164
@chmouelkessous164 6 ай бұрын
ime learning that stack too rn do you have some refs to suggest me ?
@PatrickGod
@PatrickGod 9 ай бұрын
🚀 Get 20% off the .NET Web Academy: www.dotnetwebacademy.com/bundles/net-web-academy?coupon=dnwa2024yt
@cle1ton2
@cle1ton2 Жыл бұрын
Excelente aula, consegui fazer as minhas personalizações durante as explicações. Muito Obrigado!
@chadsmith7412
@chadsmith7412 Жыл бұрын
I enjoyed the tutorial. For me, this video was a good refresher on building a DotNet API with Angular from the ground up. I appreciate the simplicity of the application. Thanks!
@abhishekchandra7606
@abhishekchandra7606 2 ай бұрын
Thanks Patrick, this was a very good end to end tutorial , covering both Angular and Web API.
@brobeans1320
@brobeans1320 Ай бұрын
Goated instructor, thank you for making this!
@nelsonrivers8546
@nelsonrivers8546 Жыл бұрын
Very nice. This helps me get started with Angular 14 w/ Web API & EF Core. Good job.
@PatrickGod
@PatrickGod Жыл бұрын
Great to hear! Thanks for your feedback!
@gigaholicrex
@gigaholicrex Жыл бұрын
You are truly the God of this type of content. I have tried many other similar tutorials which were good but yours is the best. So easy to follow along with and explained so perfectly
@PatrickGod
@PatrickGod Жыл бұрын
Wow, thank you so much!
@ProtikPC_pro_indigo
@ProtikPC_pro_indigo Жыл бұрын
@@PatrickGod This example was good. But I also have a request for you Patrick. Could you please do a full blown tutorial[with accompanying source code] for --> Authentication and Authorization with Angular, .NetCore WebAPI, .NetCore Identity and jWT? It would be immense for your audience. There are some "similar" tutorials around but mostly with much older versions of either angular or .netCore. Please consider it. Thanks!
@gwendal86
@gwendal86 8 ай бұрын
@@ProtikPC_pro_indigo I would love that as well !
@adrianspikes6454
@adrianspikes6454 4 ай бұрын
​@@ProtikPC_pro_indigo Art of Engineer has plenty as well as CodeAffection
@mr.nobody4494
@mr.nobody4494 2 жыл бұрын
Angula 14 and .NET Core, the best team ever. I hope you upload more content about the version 14, about the new features in use (inside a real project). Good video, thanks!
@minhthongvu3189
@minhthongvu3189 9 ай бұрын
why .net core vs angular is the best team . Why not reactJS, VueJS or something else... . I'm newbie, thank you for the explanation !
@marcossouzajr1711
@marcossouzajr1711 9 ай бұрын
@@minhthongvu3189 you can do great apps with react, vue, svelte, etc. But in Angular is best to keep a pattern to build applications. This is why angular is best for teams because all members will work together using and knowing the same tools provided by the framework.
@ninearc2207
@ninearc2207 8 ай бұрын
Thank you for video Patrick!
@nickeax
@nickeax Жыл бұрын
This is fantastic, thank you very much for creating this great resource.
@nashanharis3398
@nashanharis3398 Жыл бұрын
Amazing stuffs. Perfect stuff to update Angular CRUD
@DecentralEyes
@DecentralEyes Жыл бұрын
Great tutorial. Learning the very basics again instills much more confidence than trying to pick up full Udemy course content!
@osamamicro1103
@osamamicro1103 Жыл бұрын
Thanks, Patrick it really helps! we need a complete real-life project with authentication & authorization + CRUD using Angular 15 + .Net 7 + EF 7
@face1517
@face1517 2 жыл бұрын
Finally this is we are waiting thank you for this
@clovischannel
@clovischannel Жыл бұрын
Patrick God, congratulations, your content's very nice always updated and very objective
@williamlebron2078
@williamlebron2078 2 жыл бұрын
Excellent tutorial, I love everything about Angular and .Net 💯👌🏻 thanks you very 🙏🏼
@PatrickGod
@PatrickGod 2 жыл бұрын
You're very welcome! Thanks for your feedback, William! 😄
@ronaldo_sys
@ronaldo_sys Жыл бұрын
Hello, I had a problem connecting the SQL server and I added instructions (TrustServerCertificate=True;) in the connection string. Worked perfectly. Thanks. Great tutorial
@galemwendar2170
@galemwendar2170 Жыл бұрын
Thank you so much for you're tutorial!
@patrickboehme4556
@patrickboehme4556 Жыл бұрын
Thanks Patrick, really enjoyed this tutorial!
@PatrickGod
@PatrickGod Жыл бұрын
Glad you enjoyed it! Thank you so much for your feedback!
@procodigosistemas5201
@procodigosistemas5201 Жыл бұрын
Hey Patrick, I'm a developer from Brazil, thank's a lot for this video.
@farhangmdc
@farhangmdc Жыл бұрын
That's really interesting! 👏👏
@joseangelservin4724
@joseangelservin4724 Жыл бұрын
this is awesome, grate job!
@juarez_junior
@juarez_junior Жыл бұрын
Thank you Patrick! It has been my first step with Angular and now I know it's not a monster. I've tried to learn with some other tutorials but only with you I got it.
@nagendrakashyap27
@nagendrakashyap27 Жыл бұрын
Great video! easy to understand
@sambayaraa6389
@sambayaraa6389 Жыл бұрын
Great Tutorial ! Thank you!
@king_naashik9266
@king_naashik9266 Жыл бұрын
in your .net core register user tutorial helped lot for my job. Thank u very much sir.And I love ur teaching pattern.Those are so real and casual. Once again thank you
@PatrickGod
@PatrickGod Жыл бұрын
Glad to hear that! Thank you so much!
@alexandrearc
@alexandrearc 10 ай бұрын
Thanks for the tutorial!
@a_ghoul
@a_ghoul 7 ай бұрын
I am about to start a new job and have to build something with .NET and have never used it. Thanks so much for this!
@PatrickGod
@PatrickGod 7 ай бұрын
Glad it was helpful! And congrats!
@Infovideosbybilal
@Infovideosbybilal Жыл бұрын
bundle of thanks Patrick for this amazing tutorial.....
@PatrickGod
@PatrickGod Жыл бұрын
My pleasure! Glad it was helpful!
@RahulYadav-gd8oh
@RahulYadav-gd8oh Жыл бұрын
Very well explained.
@subashbarik
@subashbarik 2 жыл бұрын
Great video , really helpful.
@StephenPoole-of4qc
@StephenPoole-of4qc Ай бұрын
Very nice, can't thank you enough
@baronyuda7602
@baronyuda7602 2 жыл бұрын
This is so helpful! Thanks!
@PatrickGod
@PatrickGod 2 жыл бұрын
Glad it was helpful! Thanks a lot for your feedback!
@francisbanda1614
@francisbanda1614 Жыл бұрын
thank you sir Patric, am following you ...
@AliHassan-ol3dx
@AliHassan-ol3dx Жыл бұрын
Thank you so much Patrick for this amazing tutorial. Can you mentions the extensions that you installed for Angular in vs code?
@raggardy
@raggardy 2 жыл бұрын
Nice one Patrick! Was just looking for something like this when I got your email !
@PatrickGod
@PatrickGod 2 жыл бұрын
Glad I could help! 😁
@flogginga_dead_horse4022
@flogginga_dead_horse4022 2 жыл бұрын
yep...
@sta8hs13
@sta8hs13 Жыл бұрын
Thank you! Exactly what I need for work :)
@woodyinz9895
@woodyinz9895 2 жыл бұрын
This is perfect. ty bro.
@Mostaf1zurRahman
@Mostaf1zurRahman 11 ай бұрын
Impressive, such a well furnished tutorial.
@PatrickGod
@PatrickGod 11 ай бұрын
Thanks a lot! 😊
@Mostaf1zurRahman
@Mostaf1zurRahman 11 ай бұрын
welcome 🖤
@Greed-ms2cv
@Greed-ms2cv Жыл бұрын
Thank you Patrick you're truly a God!
@PatrickGod
@PatrickGod Жыл бұрын
Haha, thank you! 😊 Happy to help!
@dhakerbadri8040
@dhakerbadri8040 10 ай бұрын
Thank you so much !
@rumeshbandara9972
@rumeshbandara9972 10 ай бұрын
Thanks you so much sir .. i learn lot of once ..
@devian3634
@devian3634 2 жыл бұрын
Waiting for the Authorization and Authentication Angular+.NET 6 Tutorial. Thanks!
@donz_0541
@donz_0541 Жыл бұрын
Thanks a lot for this tutorial Patrick. This is very useful for my angular project. Hope you will have to apply the material UI too for this SuperHero Angular app tutorial.
@aliramazanyildirim
@aliramazanyildirim Жыл бұрын
Hi Patrick There is no environment folder in Angular 15 version. What should we do to work with Angular 15 in different environments? 🤯
@daimeunpraytor7984
@daimeunpraytor7984 Жыл бұрын
For others that see this, they are no longer installed by default. You must use the "ng g environments" command in the root directory of the app.
@franciscodesouzacosta3887
@franciscodesouzacosta3887 Жыл бұрын
ng generate environments on src folder
@user-fc9ms9nc8n
@user-fc9ms9nc8n 4 ай бұрын
What a name "patrick God"
@Kunnu_Jeevi_Blogs
@Kunnu_Jeevi_Blogs 5 ай бұрын
Very useful video 🙂
@chanchalhappy
@chanchalhappy Жыл бұрын
Great video many thanks and you are awesome programmer ...
@PatrickGod
@PatrickGod Жыл бұрын
So nice of you! Thank you!
@PeterCrowed
@PeterCrowed Жыл бұрын
Awesome Tutorial!
@PatrickGod
@PatrickGod Жыл бұрын
Glad you think so! Thank you! 😊
@fridayman99
@fridayman99 4 ай бұрын
Thanks for the great video, Patrick, as always 🙂 I use Visual Studio Pro and have all my experience there. Is it possible to do the above work in VS vs. Code? Thanks again.
@abdoobas8267
@abdoobas8267 Жыл бұрын
hey! patrick thanks a lot for your effort and contribution ,we would love to if your create a video on Authorization and Authentication and JWT exchange between dotnet 6 API and angular ,thanks btw ❤✌
@_ncodes
@_ncodes 2 жыл бұрын
Great tutorial, a very helpful follow-up video would be a walkthru on how to deploy this fullstack app. Could be with Azure or other cloud hosting service, or with VPS service like Digital Ocean or Vultr. Would be cool to share it with the world 🌎
@CrakerAhad
@CrakerAhad Жыл бұрын
Love you
@TommiLipponen
@TommiLipponen Жыл бұрын
Hi Patrick. Do you have a tutorial or a course where you use Swagger document created by ASP NET Core API and MsBuild in Angular root for to get strongly typed entities in front part? And thanks for this great content!
@ashishnayak2666
@ashishnayak2666 Жыл бұрын
Awesome❤
@alysonramos3424
@alysonramos3424 2 жыл бұрын
Excellent tutorial, looking forward for new tutorials on this excellent stack! Maybe inside a real project? 🇧🇷 loves u
@nathanaelrossel778
@nathanaelrossel778 Жыл бұрын
Thank you so much! Could you make a tutorial about templates, routing and content blocks?
@DManThe12
@DManThe12 Жыл бұрын
Awesome video
@danimerz5861
@danimerz5861 2 жыл бұрын
Du bekommst von mir den Like nur schon wenn ich sehe neues video online 😉
@PatrickGod
@PatrickGod 2 жыл бұрын
Super nett von dir, Dani! Dankeschön! 😄
@akshitasingh6208
@akshitasingh6208 2 жыл бұрын
Hi Patrick, I m Akshita from India....I was exactly looking for a this kind of video when u just uploaded on you tube....u literally saved me from getting scolded by my teacher one suggestions:: It wud more helpful for beginner coder like me if wid u explain logic behind the code keep uploading grt videos😇😇😇😇
@leblancthierry8781
@leblancthierry8781 Жыл бұрын
Thank you for this angular video tutorial. Have you any experience with react to compare these 2 javascript frameworks ? the same tutorial adapted to react would be nice. Thanks!.
@OverlandEcho
@OverlandEcho Жыл бұрын
@PatrickGod, when we getting an updated one? Would be nice. I see that VS 2022 has a pre-setup one that has both included. Kind Regards
@mohamedboulhez
@mohamedboulhez Жыл бұрын
Thanks
@kk3528
@kk3528 Жыл бұрын
Very good 👍
@sesano604
@sesano604 9 ай бұрын
@PatrickGod thanks for this video. I wanted to develop an app and I have been contemplating wether to use DDD or web api services + any angular front end. This solved my concerns. Thanks
@saeednoruzic
@saeednoruzic 2 жыл бұрын
awesome i hope in feature you get more to this stuf
@stianen
@stianen Жыл бұрын
I'm totally new to Angular. I have read around, and I see that a lot of people strongly recommend the use of interfaces instead of model classes. Would that also be recommended for such a simple app as this SuperHero app?
@Leonidn1972
@Leonidn1972 Жыл бұрын
Thanks a lot!!!
@andrenunes4032
@andrenunes4032 Жыл бұрын
Thank you very much!!!!!!!!!!!!!
@PatrickGod
@PatrickGod Жыл бұрын
You're welcome! 😊
@GeminiLearning
@GeminiLearning 2 жыл бұрын
Thanks Patrick. This is very nice. Next time kindly do React as well
@tmpmus5985
@tmpmus5985 2 жыл бұрын
Thank you
@haianh247
@haianh247 Жыл бұрын
thanks you so much :D
@eskpetri
@eskpetri Жыл бұрын
Great Video. btw If you update to .NET7 and specially EF to 7 and get certificate error then modify connection string to "server=localhost\\sqlexpress;database=superherodb;trusted_connection=true;TrustServerCertificate=True" the other options are using real Certificate or use Encrypt=False in connection string.
@TetriMesquita
@TetriMesquita Жыл бұрын
Legal Petri, eu utilizei o SQL Server Express em Docker e para conexão foi mesmo necessário indicar o parâmetro TrustServerCertificate=True. Obrigado pela dica!
@pankracio3090
@pankracio3090 8 ай бұрын
thx a lot
@SirFrancisFoley
@SirFrancisFoley 7 ай бұрын
I was driven demented until I found this.
@riazripon6670
@riazripon6670 Жыл бұрын
Great job sir, it helps us more. love from bangladesh
@aboutselphy
@aboutselphy 6 ай бұрын
Finally a Tutorail with information. But i have one question this is my first Angular Site i build with Crudand i didnt find any other good tutorial about this, How do i deploy this on my Debian 11 Web server (apache) ? normaly i have to put in the Dist Files into my http folder but with the .net api im not sure how this would work :D (or even if i have to change any information in the API)?
@khenwilfredmaranan7569
@khenwilfredmaranan7569 Жыл бұрын
Thanks god
@josbexerra8115
@josbexerra8115 2 жыл бұрын
Excelentes Mister Patrix....saludos de los andes peruanos
@garybob88
@garybob88 2 жыл бұрын
Thanks!
@PatrickGod
@PatrickGod 2 жыл бұрын
Wow! Thank you so much for that, Frédéric! Really appreciate it! 😊
@anurag3487
@anurag3487 Жыл бұрын
Nice video, very easy to understand. You could have added form validations on the angular end, as well as data annotations on the model in the API end. Also some formatting via css could have been better. Just a suggestion
@alicehrndz
@alicehrndz Жыл бұрын
amaizing! you saved my life with this tutorial, never change
@PatrickGod
@PatrickGod Жыл бұрын
Great to hear! Thanks a lot for your feedback!
@__procherk__
@__procherk__ Жыл бұрын
Hi Patrick, it is super tutorial, thank you so much! But I have one question, what if I use Azure Data Studio (because mac), so how I can create Connection string for that?)
@angelcasanchez7229
@angelcasanchez7229 2 жыл бұрын
Hello Patrick, I have a table with many columns and I need to consume it in a web api but I only need 6 columns, how can I make the web api only bring me the fields that I need? I am using entity framework core c#, sql server and net 6
@tonyeps
@tonyeps 2 жыл бұрын
Although I don't really like technologies like Angular or React, this tutorial was still interesting, in pure "Patrick God" style :)
@PatrickGod
@PatrickGod 2 жыл бұрын
This is so kind of you. Thank you so much, Antonio! 😄
@kartheekchinthada1733
@kartheekchinthada1733 Жыл бұрын
@@PatrickGod hehe
@mamupelu565
@mamupelu565 Жыл бұрын
in the database connection string you gotta now add "encrypt=false"
@rollensmlbb776
@rollensmlbb776 Жыл бұрын
Thank you sir! :) perfect exam for me
@soukahyessine9137
@soukahyessine9137 2 ай бұрын
thaanks
@mewmew5125
@mewmew5125 8 ай бұрын
You are NICE!
@johnchimbani8473
@johnchimbani8473 Жыл бұрын
Great Tutorial. I could'nt get CORS working like you showed for some reason, but ended up solving the issue by configuring the WebConfig and using IISE instead. It seemed much easier for me. I am curious if there are any drawbacks by using that method?
@henrik3098
@henrik3098 Жыл бұрын
thanks bruw
@julioo534
@julioo534 11 ай бұрын
I have one question. In my area is very demanding tecnoligies like Angular, C# and .NET. what version of .NET should i learn? Thanks fors answer
@davidjason3926
@davidjason3926 7 ай бұрын
Hi Patrick, At timestamp 1:03:03 my Edit and New superhero buttons are not displaying the controller from edit-heroes component. My code has 0 error, No issues found and in console also there is not error message. But still my name, firstName, lastName and place controllers and buttons are not getting binded to app-component.
@pudelosha
@pudelosha Жыл бұрын
Is this code efficient assuming that backend always returns the list of heroes? To me it should only return 1 item and the array on frontend side should be updated accordingly.
@ramakrishnaakhilnagubandi4658
@ramakrishnaakhilnagubandi4658 11 ай бұрын
added cors but it's not communicating, what could be the reason?
@dammyadebayo6292
@dammyadebayo6292 Жыл бұрын
For my port the it's not using the SuperHeroAPI profiles port. It's using the one from iisSettings. How do I change it? Thanks.
@DataJuggler
@DataJuggler Жыл бұрын
3:45 I do not get a Windows Explorer option for VS Code. I do get one for VS 2022. I am curious why you wouldn't use Visual Studio for both? Edit - I reinstalled Code and chose the file context and windows explorer options.
@hammadrafiq1285
@hammadrafiq1285 4 ай бұрын
Firstly, thank you Why I am getting this error ((Error: This command is not available when running the Angular CLI outside a workspace)) when I'm running your front-end project?
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,5 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 60 МЛН
A pack of chips with a surprise 🤣😍❤️ #demariki
00:14
Demariki
Рет қаралды 33 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
I only ever use *these* RxJS operators to code reactively
25:25
Joshua Morony
Рет қаралды 119 М.
Clean Architecture with ASP.NET Core 8 | .NET Conf 2023
29:17
NEVER lose dotfiles again with GNU Stow
14:33
typecraft
Рет қаралды 13 М.
Bro Premoved the Levy Recap!!!
18:13
GMHikaru
Рет қаралды 394 М.
MongoDB Explained in 10 Minutes | SQL vs NoSQL | Jumpstart
11:18
Git MERGE vs REBASE
16:12
Academind
Рет қаралды 1 МЛН
Should a C# Web Developer know Angular/React/Vue?
10:35
IAmTimCorey
Рет қаралды 30 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 60 МЛН