Patrick, you are the only person who could explain Web API, EF Core and more to me. At the start of my career, you did more for me than any paid course. And you are also a very nice person, your "Hello Welcome" in English in .Net 6 video will stay with me forever (my first video). I go to your channel, as if visiting a friend with whom we are talking in the attic while the children are sleeping :)) You are the best of the best of the best :)
Hey there! Your message totally made my day! 🥰 So glad my videos have helped you, especially at the start of your career. I love that you feel like you're visiting a friend when coming to my channel. Thanks for the amazing compliment, and let's keep learning together! 😊 Catch you in the next video! 🎉 Cheers, Patrick
Thank God for you have been a blessing not only to me but also to the people who are new to Blazor. You have been an inspiration to many. May i request Sir Patrick of teaching us the Blazor hybrid with access to sql server. Thank you so much for having you as our inspiration. Pls. keep up your good work because its very uplifting, encouraging for many to continue blazor coding. Salamat kaau (Thank you so much).
Can't wait to share my experience with this course before finishing the EF. It is zero difficulties of following the tutorial. I also learned a lot from the API section. Thanks for the amazing course.
I think this video is fantastic! I've been wanting to learn .NET Core for a while, and this is the most suitable tutorial I've seen so far. It has been very helpful, and I really appreciate it. Thank you!
Videos like this encourage me to continue challenging myself as I walk this career path. Your flow is inspiring! Subscribed immediately. Keep up the great work. 🙂
Thank you. As always your videos are much appreciated. Only issue was that cannot carry it through to production, because there is no security part that explains how to secure the web api with jwt token authentication. I don't want to sound like I don't appreciate it though. I'm thankful that instructors like you make the effort.
Not very Beginner level. This assumes that you know some stuff. For instance, beginners will not know what is happening behind the scenes with automapper. you gave a description, but that is not enough. It will be best if you give an example or two about how it is manually done, then introduce automapper to assist with the manual work. You skipped other beginner explanations, such as builder.Services.AddAutoMapper(typeof(Program).Assembly). Why type of Program? and why Assembly. When describing something new, don't say, you do this and done. Explain why it is done. Always keep the WHY in mind when describing new concepts.
Just started watching, but question. Why not just use Visual Studio? It's a lot easier to get up and running than adding plethora of extensions. Or am I wrong in that belief? Edit, this isn't a complaint or whine, curiously asking is all.
I am wondering about that part: 1:28:32 . Why do you use select and then tolist methods, can't you just simply map whole list like _mapper.Map(characters); ?
at 59:20 couldnt we have did that from the beginning? instead of deleting then adding in new code? it makes it hard to follow when using code then erasing it
hey, im having some issues changing the methods in the character service to suit the db. i want to buy the course (maybe theres more detail or better support there) but i cant get it at discount. i can make a new udemy account but id like to have all my courses in one, could you help with this?
Patrick could I ask what spec your development machine is. I realise I am running an old box i5-6400 CPU but it literally takes ten times as long on the build times compared to your demo.
Hi. I saw your repo with a lot of updates such as JWT etc. that are not mentioned in this video. Can you, please, tell me if there are additional videos about this.
Hi Patrick! Do you have a course of how to consume an external Rest API? i would love this video, a content where you need to provide username, password and token in order to post authentication and get the JWT in response... with this JWT then consume a service POST to show results in a table. I'm learning with your videos a lot! thank you su much!
hello, at 1:03:00 , I don't understand why this fix, if it returns null, this should mean "not existing caracter". And why saying "Character?", the ? (nullable) is just for types no ? Or if we want an exception why can use First and not FirstOrDefault. Thank you =)
In older versions of C#, ? (nullable) was only for value types. Nullable reference types is a new feature (enabled by default, introduced in I think .Net 5). When enabled, if you say the function returns "Character" then it means that you promise that your function's returned value will never be null. The caller using this function knows it's safe to use the returned value without first checking if it is null. Returning "Character?" informs the caller of this function that the returned value could possibly be null, so they need to check for null before using the result. The compiler doesn't actually enforce that you don't return null in this case, it just gives you warnings about when a null COULD be returned - as shown in the video, because FirstOrDefault() could return null. The null forgiving operator (adding ! at the end) tells the compiler that you as the programmer know exactly what's going on and you guarantee that it will actually never be null, which suppresses the warning. This feature helps you write safer code (by warning you about code that could produce null reference exceptions) and can be disabled by right clicking on your project > Edit project file, change "enable" to disable. However, in this specific example, you're right - using First instead of FirstOrDefault could've achieved the same outcome as it also would have thrown an exception if the record didn't exist.
Async method for using await so you don't have the warning that "it lacks await operator". Then the whole line to read from DB, and then map them with AutoMapper (line is useless if you don't have automapper and use direct classes).
Nice class!! I dont know why he was using VS code, but with ide as visual studio 2022 available, I think that vs code will give to much unecessary work for the developer, and even more for beginners.
Hello, I followed all your example to the letter, but I have something strange when I try. "return context.Commerce.ToList();" I have an error "The ConnectionString property has not been initialized." I haven't been able to solve it, maybe you have an idea?
hi sir , i already building api with nodejs, i want to learn this course . I just wanna ask that if i need to know c sharp basic first or what should i know to start this course .Thanks
I have a large database with 190 tables... I've generated the entity framework model... how do I auto generate the web api from the entity framework model? I don't want to do it buy adding a controller for each table...
I get : Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'ServiceResponse' could not be found (are you missing a using directive or an assembly reference?) dotnet-rpg C:\Users\Adrian\Documents\dotnet-rpg\Services\CharacterService\ICharacterService.cs 12 Active why ?
Patrick, you are the only person who could explain Web API, EF Core and more to me. At the start of my career, you did more for me than any paid course. And you are also a very nice person, your "Hello Welcome" in English in .Net 6 video will stay with me forever (my first video).
I go to your channel, as if visiting a friend with whom we are talking in the attic while the children are sleeping :))
You are the best of the best of the best :)
Hey there!
Your message totally made my day! 🥰 So glad my videos have helped you, especially at the start of your career. I love that you feel like you're visiting a friend when coming to my channel. Thanks for the amazing compliment, and let's keep learning together! 😊
Catch you in the next video! 🎉
Cheers,
Patrick
Thank God for you have been a blessing not only to me but also to the people who are new to Blazor. You have been an inspiration to many. May i request Sir Patrick of teaching us the Blazor hybrid with access to sql server. Thank you so much for having you as our inspiration. Pls. keep up your good work because its very uplifting, encouraging for many to continue blazor coding. Salamat kaau (Thank you so much).
Amen
This quality is the reason why I bought your Blazor course. I learned a lot with this video. Thank you very much.
Thank you so much! Really appreciate it!
wow thanks for this. really straight to the point where beginners need to know on building up a web api. even I ignored my udemy courses for this.
Can't wait to share my experience with this course before finishing the EF. It is zero difficulties of following the tutorial. I also learned a lot from the API section. Thanks for the amazing course.
I think this video is fantastic! I've been wanting to learn .NET Core for a while, and this is the most suitable tutorial I've seen so far. It has been very helpful, and I really appreciate it. Thank you!
Ctrl+D (multiple selection ) would save you a lot of time.
Good tutorial 🤝
Videos like this encourage me to continue challenging myself as I walk this career path. Your flow is inspiring! Subscribed immediately. Keep up the great work. 🙂
Awesome! Thank you you so much! ❤
Great lesson , I have just bought the course on udemy, I am looking forward to learning more and more from it.
Hi there. The Course ends prematurely, half way through adding _context actions to the Service class
Waiting for full course with authorization with refresh tokens and angular! You are amazing! Thanks for your work!!!
I bought this course a while ago and it's great thank you!
Thank you. As always your videos are much appreciated. Only issue was that cannot carry it through to production, because there is no security part that explains how to secure the web api with jwt token authentication. I don't want to sound like I don't appreciate it though. I'm thankful that instructors like you make the effort.
First thank you for the course. A little hint to terminal/console push CTRL - L and cls is not necessary ;-)
You live and learn! Thank you! 😊
It is very kind of you to share all this information for free with us , Thank You
🚀 Get 20% off the .NET Web Academy: www.dotnetwebacademy.com/bundles/net-web-academy?coupon=dnwa2024yt
Really great tutorial, learned a lot, finally understood backend api development, u rock, Keep up the good work. Cheers 😸😼
Not very Beginner level. This assumes that you know some stuff. For instance, beginners will not know what is happening behind the scenes with automapper. you gave a description, but that is not enough. It will be best if you give an example or two about how it is manually done, then introduce automapper to assist with the manual work. You skipped other beginner explanations, such as builder.Services.AddAutoMapper(typeof(Program).Assembly). Why type of Program? and why Assembly. When describing something new, don't say, you do this and done. Explain why it is done. Always keep the WHY in mind when describing new concepts.
Thanks a lot for your feedback. Appreciate that. I'll keep that in mind for future courses in tutorials. Cheers!
finally complete the whole tutorial
Thank you very much for your videos.
Just started watching, but question. Why not just use Visual Studio? It's a lot easier to get up and running than adding plethora of extensions. Or am I wrong in that belief? Edit, this isn't a complaint or whine, curiously asking is all.
Amazing knowledge of tech and great teaching skills. Thanks
So nice of you! Thank you so much!
Thank you for Crash Course for beginner.
Hi I would like see how you apply clean architecture instead MVC, You explain so good :3
They are completely parallel concepts, MVC is for project requests/responds, Clean is for project organization (files).
Where can I see the next lecuture?
this video saved my life
I am wondering about that part: 1:28:32 . Why do you use select and then tolist methods, can't you just simply map whole list like _mapper.Map(characters); ?
at 59:20 couldnt we have did that from the beginning? instead of deleting then adding in new code? it makes it hard to follow when using code then erasing it
A God Amoung Men
Thank you so much, can you make a video about clean architecture , please ?
Perfect
Why do we install:
dotnet add package AutoMapper.Extensions.Microsoft.DependencyInjection --version 12.0.0
instead of:
dotnet add package AutoMapper --version 12.0.0
hey, im having some issues changing the methods in the character service to suit the db.
i want to buy the course (maybe theres more detail or better support there) but i cant get it at discount.
i can make a new udemy account but id like to have all my courses in one, could you help with this?
Patrick could I ask what spec your development machine is. I realise I am running an old box i5-6400 CPU but it literally takes ten times as long on the build times compared to your demo.
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
Hi. I saw your repo with a lot of updates such as JWT etc. that are not mentioned in this video. Can you, please, tell me if there are additional videos about this.
Hi Patrick,
Can You do a video where you do .NET, Web API, SQL Database and Entity Framework with N-Layer Architecture(BLL and DAL)?
Kind regards
Hi Patrick! Do you have a course of how to consume an external Rest API? i would love this video, a content where you need to provide username, password and token in order to post authentication and get the JWT in response... with this JWT then consume a service POST to show results in a table. I'm learning with your videos a lot! thank you su much!
26:15
At this moment, in line #16, where you wrote "Class", is that the name you declared?
hello, at 1:03:00 , I don't understand why this fix, if it returns null, this should mean "not existing caracter". And why saying "Character?", the ? (nullable) is just for types no ? Or if we want an exception why can use First and not FirstOrDefault. Thank you =)
In older versions of C#, ? (nullable) was only for value types. Nullable reference types is a new feature (enabled by default, introduced in I think .Net 5). When enabled, if you say the function returns "Character" then it means that you promise that your function's returned value will never be null. The caller using this function knows it's safe to use the returned value without first checking if it is null.
Returning "Character?" informs the caller of this function that the returned value could possibly be null, so they need to check for null before using the result. The compiler doesn't actually enforce that you don't return null in this case, it just gives you warnings about when a null COULD be returned - as shown in the video, because FirstOrDefault() could return null. The null forgiving operator (adding ! at the end) tells the compiler that you as the programmer know exactly what's going on and you guarantee that it will actually never be null, which suppresses the warning.
This feature helps you write safer code (by warning you about code that could produce null reference exceptions) and can be disabled by right clicking on your project > Edit project file, change "enable" to disable. However, in this specific example, you're right - using First instead of FirstOrDefault could've achieved the same outcome as it also would have thrown an exception if the record didn't exist.
2:16:55 - Noob question, but why do you have to map and convert to a list when you already have "ToListAsync()" on the line above?
Async method for using await so you don't have the warning that "it lacks await operator". Then the whole line to read from DB, and then map them with AutoMapper (line is useless if you don't have automapper and use direct classes).
what's diff between this video and previous videos about web api?
Nice class!! I dont know why he was using VS code, but with ide as visual studio 2022 available, I think that vs code will give to much unecessary work for the developer, and even more for beginners.
can you upload the full course in Pluralsight also?? plz
The "C# Esrensions" extension is no longer under development. Do you know of anther extension with similar functionality?
I installed the one by "JosKreativ" and it works well
Hello, I followed all your example to the letter, but I have something strange when I try. "return context.Commerce.ToList();" I have an error "The ConnectionString property has not been initialized." I haven't been able to solve it, maybe you have an idea?
how to connect to database? 2:14:27
hi sir , i already building api with nodejs, i want to learn this course . I just wanna ask that if i need to know c sharp basic first or what should i know to start this course .Thanks
Hey there! Yes, knowing C# definitely helps here.
Is there any good discount ?
Bro Can you tell me how to get only Name by ID ?
I have a large database with 190 tables... I've generated the entity framework model... how do I auto generate the web api from the entity framework model? I don't want to do it buy adding a controller for each table...
Note to self: Start at 19:07
why use VS Code, it adds so much more work unnecessarily
First comment 😉
Too much restriction.... so confusing
I get : Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'ServiceResponse' could not be found (are you missing a using directive or an assembly reference?) dotnet-rpg C:\Users\Adrian\Documents\dotnet-rpg\Services\CharacterService\ICharacterService.cs 12 Active
why ?