.NET 7 Web API & Entity Framework 🚀 Full Course (CRUD, Repository Pattern, DI, SQL Server & more)

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии • 130

  • @VitaliChuzha
    @VitaliChuzha 2 года назад +35

    One of the best videos I have seen on this topic. Simple, sequential presentation, clear from top to bottom. Thank you very much!

    • @PatrickGod
      @PatrickGod  2 года назад +2

      Thank you so much for your kind words! Means a lot to me. I'm really glad I could help.😊

  • @piipaatirullaa
    @piipaatirullaa Год назад +6

    Greetings from Finland. I shifted over from development to sales over 10 years ago and started to try out coding again , just for fun. The starting up again is a pain as nothing in the code makes sense. I found your tutorial super beneficial and clear. Thanks for this.

  • @rdwok14
    @rdwok14 Год назад +3

    I'm only 15 minutes into this video but i really, really like your style. I've done a few other tutorials and from what I've seen people either blow through things without explaining or they explain too main minor details without touching on the bigger picture of why things are done a certain way. I can say your tutorial is one of the best I've come across.

    • @PatrickGod
      @PatrickGod  Год назад

      Awesome! I really appreciate that. Thank you so much!

    • @rdwok14
      @rdwok14 Год назад +1

      @@PatrickGod I finally got through the whole video and I have to say, you have taught this tutorial in a way such that one can watch the video and listen to your explanation, then go and recreate the app on their own without having to look at your code. Your process follows an understandable logic starting with building the model, testing a mock controller with a simple in-memory data structure, refactoring into a service with repository pattern, and then refactoring the interface implementation to use a SQL database which really demonstrates the repository pattern. Each refactor teaches a very fundamental pattern to .NET/OO web frameworks that I feel that I can recreate this in Java/Spring too. I've struggled with other tutorials because they just show the final step in code without building up each step and most jump right into interfaces everywhere and an EF migration before we even mock up an API. Very well done, you are the God of teaching .NET.

  • @eddyelamin9015
    @eddyelamin9015 Год назад +2

    Thank you for such a great video! I have struggled to find a tutorial on Web API but thankfully i stumbled on your video.

  • @НазарійОлеговичФедун

    Goddamn!! There are all topics that I couldn't fully understand. Because of you, I've finally understood everything down to the smallest detail. Thank you so much!

  • @huywarrior
    @huywarrior 11 месяцев назад

    The exercises are easy to understand from high to low and from overview to detail. Thanks for making it simple!

  • @RichardBerry-o5s
    @RichardBerry-o5s Год назад +2

    This was Excellent - Thank you!! Followed along and an my API works perfectly. Your explantions are clear, flow makes pefect sense. Even the little mistakes here and there added value for me.
    Perhaps a touch on SQL Server DataTypes (tables ended up nvarchar(max) for the string fields, and what to do in case of a table with millions of rows where you perhaps return a subset of the rows and fields. But yeah, all in all a GREAT video!!

    • @PatrickGod
      @PatrickGod  Год назад +1

      Wow, Richard, thank you for the fantastic feedback! I'm thrilled to hear that the tutorial worked well for you and that you found value even in the little mistakes-those are often the best learning moments!
      Your suggestion about diving deeper into SQL Server DataTypes and optimizing for larger data sets is an excellent one. Handling data efficiently is a crucial aspect of back-end development, especially as applications scale. I'll definitely consider creating a video to cover these topics in more detail.
      Again, thank you for your support and thoughtful comment. If you have more questions or topics you'd like to see covered, feel free to let me know. Happy coding! 🎉👨‍💻

  • @mariomelendezpichoneau785
    @mariomelendezpichoneau785 2 года назад +1

    Hello, greetings from the Dominican Republic. I have been following you for a month or so and I have been watching your videos and I have liked them and they have helped a lot, excellent explanation, 'many blessings' 😇🙏

  • @mallninja12
    @mallninja12 2 года назад +11

    Dude you're awesome. I'm a DBA and I've been assigned with creating a web app using C#/NET, and months ago I found your channel.... through these API walkthroughs and other suggestions like MudBlazor/Blazor I've been able to make a pretty legit, fully functioning, low code and maintanable app despite not being a programmer that I'm proud of. Thanks for the videos. Recently did a year of skillshare and ill be checking you out there as well.

    • @PatrickGod
      @PatrickGod  2 года назад +1

      That's amazing! Thank you so much for sharing this with us. 😊 All the best!

  • @kbolton1373
    @kbolton1373 Год назад +1

    Brilliant, Simply Brilliant, Very much appreciated !!!

    • @PatrickGod
      @PatrickGod  Год назад

      Glad it helped! Thanks a lot for your feedback! 😊

  • @abrahamrussom255
    @abrahamrussom255 2 года назад +2

    50:00 "Why did you not tell me" 😅 ... I told you but you didn't listen. Very nice video good explanation

    • @PatrickGod
      @PatrickGod  2 года назад +1

      😂 Haha, nice. Thanks!

    • @lecole_joy_code28
      @lecole_joy_code28 Год назад

      Haha i put the video on stop to look for this comment , i knew that someone payed attention to that lol , amazing tutorial

  • @levankakhidze8150
    @levankakhidze8150 2 года назад

    You are the first Hero bro!

  • @imsdkl
    @imsdkl Год назад

    Thanks bro! Learned a lot from this short tutorial video! )

  • @anze2455
    @anze2455 2 года назад +2

    Thank you for such a clear and simplistic tutorial to grasp some knowledge on the new 7 version. You gained a new subscriber :) Great guy!

    • @PatrickGod
      @PatrickGod  2 года назад

      Thank you so much! Really appreciate it. 😊

  • @marciliojrr
    @marciliojrr Год назад +1

    Amazing video! Thanks a lot for that.
    While you did with SuperHero model, I made with User model and works perfectly. Now, I'm trying creating another models and make the relationships. One more time, thanks for this tutorial!

    • @PatrickGod
      @PatrickGod  Год назад

      Glad it helped! Thanks a lot for your feedback!

  • @divyanair1911
    @divyanair1911 Год назад +1

    Great Explanation ,Thanks a lot for this Amazing tutorial !!

    • @PatrickGod
      @PatrickGod  Год назад

      Glad it was helpful! Thanks a lot for your feedback!

  • @sergkapitan2578
    @sergkapitan2578 4 месяца назад

    Thanks a lot! Can you one day explain for beginners what is what in more details...:)? And what is going on beside the curtain of ,NET and C# together:)

  • @core_Info
    @core_Info Год назад

    It was Amazing ❤

  • @ahmo4781
    @ahmo4781 2 года назад +1

    vielen lieben dank, deine videos sind spitze!

    • @PatrickGod
      @PatrickGod  2 года назад

      Das freut mich sehr! Danke dir vielmals für dein Feedback! 😊

  • @orlandoubilla7055
    @orlandoubilla7055 Год назад +1

    Good Content, this save me, thanks!!

  • @softwaretestinglearninghub
    @softwaretestinglearninghub 2 года назад +2

    Great explanation, thank you Patrick!

  • @idekfai
    @idekfai Год назад +1

    thank you for the updated tutorial!

  • @sarikakalokhe9410
    @sarikakalokhe9410 Год назад

    Wow such simple and great explaination kudos

  • @derekkc7299
    @derekkc7299 Год назад

    I like the design of this version using service and interface to implement dependency injection.

  • @rahmanchaudhary5961
    @rahmanchaudhary5961 2 года назад +3

    Excellent work @Patrick God , please keep it up and there should be video of real life project example ( user registration, employee registration or a sales invoice ) from creating Table , Strored Procedures, Web Api and Angular

  • @patrickmugiraneza4627
    @patrickmugiraneza4627 Год назад

    thanks a lot patrick

  • @nitamto
    @nitamto 2 года назад

    I've tried several online courses throughout my Web Developer career. Your videos are the best of used. EXCELLENT

    • @PatrickGod
      @PatrickGod  2 года назад

      Thank you so much! Means a lot! 😊

  • @mahdiattar7830
    @mahdiattar7830 2 года назад +1

    Hey Patrick! would you make a video on how to add data access layer to the project? Thanks

  • @alejandrogomeznieto
    @alejandrogomeznieto Год назад +1

    I love batcam comics!

  • @zangibarx
    @zangibarx 2 года назад +1

    Thanks for the video!👏🙏

  • @10Totti
    @10Totti 2 года назад +2

    Thanks!

  • @Gauravkumar-jm4ve
    @Gauravkumar-jm4ve Год назад

    thanks subscribed

  • @Jonatas_Arruda
    @Jonatas_Arruda 2 года назад

    The reload is not a bug, you have the option o rebuild on save marked, thats why it keeps building

  • @stefanmostert704
    @stefanmostert704 2 года назад +1

    You are amazing!

    • @PatrickGod
      @PatrickGod  2 года назад

      Thank you very much! 😊

  • @kiransai7616
    @kiransai7616 2 года назад +2

    Good work sir 👍 , on your next vlog please show us how to work on Dbfirst with Indentity and multi relational database

  • @olexiy93
    @olexiy93 2 года назад +1

    Great course!

  • @nakashilearn6048
    @nakashilearn6048 2 года назад +1

    hi patrick thanks for all God bless you , plz how we can add two tables concurrent linked by foreign key with Web API

  • @temmytory4309
    @temmytory4309 2 года назад +2

    Hello, thank you for the tutorial. I was wondering if you are planning to do videos on different authentication methods with users accessing our API?

  • @Sunstriderko
    @Sunstriderko 2 года назад +1

    I am API and DI noob. Can someone explain what is the process of creating the SuperHeroController? So with every HttpRequest, new SuperHeroController is created and according to the type (Scoped,Transient, Singleton) of service, new or existing service object is provided to the controller?

  • @uzmazubair4288
    @uzmazubair4288 Год назад

    Thank you so much, very helpful.

  • @appu689
    @appu689 11 месяцев назад

    Although video is very useful for beginners as well as for an experienced. If any video available where you have implemented same crud operation using automapper in different layers??

  • @jayandrapatil
    @jayandrapatil Год назад

    Super duper video

  • @alirezajeditehrani879
    @alirezajeditehrani879 2 года назад

    Thanks! That was great!

  • @jason-ph6zm
    @jason-ph6zm Год назад

    have a quation, if you publish on iis, will the DB connet string still the same? cause in my situation, keep showing can't loging the SQL Server

  • @mahendranath2504
    @mahendranath2504 Год назад

    Thank you so much for the amazing content video , subscribed and liked 👋👍👏🎉🫡🎊🙏🏻🥳🤝👌🫰🏻🤗😎

  • @kwameedu-ansah4059
    @kwameedu-ansah4059 Год назад

    Greetings! You surely have some of the best tutorials in the game! I wanted to know how I would alter the program to use Cosmos DB. I have tried it on my own but seem to run into many issues. Thanks

  • @Acesteef
    @Acesteef Год назад +1

    God is always there when i need him the most 🙏

  • @faziolifairmont8125
    @faziolifairmont8125 2 года назад +2

    Can you please make a video about CORS?

  • @R3s0n4te
    @R3s0n4te Год назад

    new List doesn't work, it says "The type ot namespace name 'SuperHero' could not be found (are you missing a directive or assembly reference?)

  • @HussainAl-ahmdi
    @HussainAl-ahmdi Год назад

    thanks man

  • @aikidoshi007
    @aikidoshi007 2 года назад

    Brilliant! Thanks muchly!

    • @PatrickGod
      @PatrickGod  2 года назад

      Thank you very much for your feedback! Glad it helped! 😊

  • @thieptrantrung
    @thieptrantrung 2 года назад +1

    Good😍. You can do about Identity to the ASP.NET Core Project?

  • @Quebster
    @Quebster 2 года назад

    Thank you for the awesome vid! My only request to make things more clear for us new devs, is could you leave your solution explorer open on the side? I know ultimately I can see where you are based on the tab names, but the solution explorer is more clear.
    I also did not have all those crazy issues on the latest VS build at time of writing this comment (17.4.3). However I get stuff like that a lot when working on my MAUI projects. I do lots of clean/rebuilds and restarting VS to clear the crazy stuff.

  • @CheeseBae
    @CheeseBae Год назад

    Are there any issues with using multiple awaits in the same method, such as them getting out of sync?

  • @binoymathew440
    @binoymathew440 Год назад

    Sorry can someone explain, why is await and async method used everywhere? Whats the benefit? Also what is the repository pattern? I dont see that explained

  • @kwstaslalaounis3212
    @kwstaslalaounis3212 Год назад

    You are Perfect thank you...

  • @sarafotros4914
    @sarafotros4914 Год назад

    Great tutorial, but can you consider Mac users for the database part?

  • @mmokzlrsn
    @mmokzlrsn 5 месяцев назад

    what about dto models and doing reverse engineering instead of code first aproacH?

  • @jiahaokok-bl5jk
    @jiahaokok-bl5jk Год назад

    im still using the fat controller design.... is that ok ?(well.. i will do the service and interface next time..)

  • @andy_top6676
    @andy_top6676 Год назад

    I did not understand a little why it works correctly if you specified "AddScoped"? ... When I taught dependency injection, I read that when we do "AddScoped", new service objects are created with each request. And since we have our data created inside the class along with the creation of the object, shouldn't all our changes be reset ... I thought it would be, and did "AddSingleton". But it still works for you, I don't understand...

  • @vikram5010
    @vikram5010 Год назад

    What are the differences between Web API project using EF and Microservices project using EF? If I have code for the project, how can I find out if it is a Web API project or Microservices project?

  • @jairocontreras8467
    @jairocontreras8467 Год назад

    Hola Patrick, mil y un millon de gracias!, tengo una pregunta:, Si quiero conectarme a mas de una base de datos que tienen la misma estructura, como lo haría?, teniendo en cuenta que el DbContext solo muestra la conexion a una base de datos.

  • @therav2007
    @therav2007 Год назад

    please do a cutdown version of this which focuses on things that are different with .NET7

  • @houba1263
    @houba1263 2 года назад

    hello thank you for your tutorial , i have a question how can i execute custom sql queris?

  • @EzequielRegaldo
    @EzequielRegaldo Год назад

    So the service is instanciated everytime you get a request ? hmm is it something good ?

  • @xxspiros
    @xxspiros 2 года назад

    thank you!

  • @azadansari2692
    @azadansari2692 Год назад

    how to store file in database?

  • @NextGenCloudNet
    @NextGenCloudNet Год назад

    Sir I will say one thing, I can't understand the example of SuperHero.
    was this the only example you had to show

  • @MathewsJosh
    @MathewsJosh Год назад

    Someone can help me? I am having this error: "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 25 - Connection string is not valid)"

    • @swapnilchauhan3241
      @swapnilchauhan3241 Год назад

      If you're using remote Database, then it may be because of VPN. Ensure You're database doesn't require VPN for connection, or the VPN is enabled.

  • @derhustlerderhustler2589
    @derhustlerderhustler2589 2 года назад

    After migration and update the database i cant edit the first 200 rows because the microsoft sql server management studio doesnt show anything but a white blank screen after click on button edit first 200 rows can you help me ?

    • @johnsoto7112
      @johnsoto7112 Год назад

      I had the same issue, you need to download the latest version

    • @derhustlerderhustler2589
      @derhustlerderhustler2589 Год назад

      @@johnsoto7112 can you Tell me what latest Version? The latest Version of SQL ?

  • @lleorox
    @lleorox 11 месяцев назад

    excelente

  • @ouzhizus
    @ouzhizus Год назад

    That's AWESOME!Thank you
    Also wanted to ask about your course on Udemy(.NET 7 Web API & Entity Framework Jumpstart),do I have to learn basics of Razor pages before watching it,or I'll be fine without Razor?

  • @Gojam12
    @Gojam12 Год назад

    I started the blazing shop app. I used that and every search term imaginable yet now it's nowhere to be found. Did you remove it. I was 30 minutes into it now I just cannot find

    • @PatrickGod
      @PatrickGod  Год назад

      Hey James, here's the Blazing Shop Playlist: ruclips.net/video/ITk2MTFpiA4/видео.html&ab_channel=PatrickGod

    • @Gojam12
      @Gojam12 Год назад

      @@PatrickGod thanks so much

  • @Poeisible
    @Poeisible 2 года назад

    It seems not too much different with NET 6, right?

  • @mesanjyaa3616
    @mesanjyaa3616 2 года назад

    Love from India we are not getting your video in playlist can check on that❤️😍🥺

  • @PatrickGod
    @PatrickGod  Год назад +3

    🚀 Join the .NET Web Academy with a 20% discount - closing soon! 🚀
    www.dotnetwebacademy.com/bundles/net-web-academy?coupon=dnwa2024yt

    • @felixpatric4056
      @felixpatric4056 Год назад

      Hello Patric. Thanks for another wonderful informative piece. I would like to ask, what makes your content different from the rest on youtube? Many have produced web api with crud using entity framework and they just stop from there, they don't elaborate on what's next after building the API(how to consume them in an application such as mvc, razor pages, blazor and even dotnet maui or react), others come with DDD backed in and all stops at crud functionalities and from a beginners point of view we struggle to understand what API's are and their use case scenarios and why we should build them. If you're going to differentiate yourself from the rest of the pack (those who whetted our appetite on web api and left us with crud functionalities using swagger and or postman and stop from there), count me in.I bumped into your website when the enrollment period is closed.😥

    • @binoymathew440
      @binoymathew440 Год назад

      @@felixpatric4056 Very good points here - how do we consume the api? We know for sure, this is not the way we are going to use web api in our work environment

  • @sandanuwan4441
    @sandanuwan4441 2 года назад

    GitHub URL is not working to download codes. Could you please check again. Thanks !!!

    • @PatrickGod
      @PatrickGod  2 года назад +1

      Should work now! Thanks for reaching out!

  • @MdImran-jz1mw
    @MdImran-jz1mw Год назад

    Please provide github link for todays lecture

  • @sindersinder6457
    @sindersinder6457 2 года назад

    so why don't use autofac?

  • @bahibrahim101
    @bahibrahim101 Год назад

    you rushed headfirst budd but still a decent walkthrough gj

  • @mthithers
    @mthithers 2 года назад

    Next Halloween I'm going as Batcam. 🙂

    • @PatrickGod
      @PatrickGod  2 года назад

      😂 Would love to see that costume!

  • @lantisdylan
    @lantisdylan 2 года назад +1

    Good day can u make tutorial for .net maui...

    • @PatrickGod
      @PatrickGod  2 года назад +2

      Noted! It's definitely on my list. Stay tuned! 😊

    • @lantisdylan
      @lantisdylan 2 года назад

      @@PatrickGod thank you sir ☺️

  • @bosch5053
    @bosch5053 Год назад

    GOD

  • @nghipham959
    @nghipham959 Год назад

    I thought Dr.Strange erased everyone mind about Spider Man was Peter Parker

  • @rba1aji216
    @rba1aji216 2 года назад

    dotnet 7 is stable?

  • @ahmetkeskin2462
    @ahmetkeskin2462 Год назад

    21.50

  • @alfonsoprofox
    @alfonsoprofox 2 года назад

    All the CRUDs are with superheroes, isn't it time to change the subject?

    • @PatrickGod
      @PatrickGod  2 года назад

      What do you suggest? 😉

  • @ToTheMoonParty
    @ToTheMoonParty 2 года назад

    seriously your last name is God? are you jesus?

  • @vittoriomorellini1939
    @vittoriomorellini1939 2 года назад

    The efcore7 does not work for scaffold, it works for connection maybe but scaffold does not work the 7.0.0 efcore

  • @clarkflavor
    @clarkflavor Год назад

  • @jogibear9988
    @jogibear9988 2 года назад

    You should use 7.0.1 now cause of a Bug in Reflection, see my issue ##78218