Thank you so much! I struggled for 2 days finding full complete tutorials on creating a full CRUD web API and your tutorial helped so much. Learned about the syntax and what tools to use!
You reached a level of trust for me that, i like the video before i start watching it, and at the end i think with my self, "yes, i knew it". Congrats for your content, and hugs from Brazil to you, honestly, your channel is the most recommended by me for my friends! Even those who doesn't speak english hahahahaha
Thank you very much for the video tutorial, it became much clearer. It’s a pity that they didn’t use DTO as an example and didn’t break it down into services. I'm waiting for new videos
I think it's related but not necessary. Database-First is used on existing database model to convert it to classes, useful when migrating application, e.g. .Net 7 apps to .Net 8
Do you have any video describing all the architectural components of a full fledged blazor application (code-first preferably) like: Service, Controller, Context, Model, Database, Fronteend framework. Also with explanation on how do they work together from the higher view and when do we use each of them?
Excellent info, Patrick. Thank-you. Just to add - it may be a good idea not to use the "api/[controller]" naming convention as this may result in breaking changes when releasing updates; it's almost always safer to use a fixed route name.
Hello Thank you very much for your videos. If possible a tutorial on. Custom authentication from scratch. Use of Tokens & Cookies. and put Claims authentication on the server and client side. Thank you very much.
I really appreciate your effort. As a beginner of .NET i learned lot of things from this video. I have one question about PUT request. Why don't you put ID on the route? is it .NET approach or anything?
Hey Patrick great video, I know most of the stuff you do on Blazor is WebAssembly, is it possible you could do a video on how to add single account identity to a project that you configured without it at project creation, and you already have a database with a connection string? Thanks, Jordan
Thanks for the great video Patrick. For Create/POST endpoint, you mentioned that the best way to do it is through a DTO that we then map to a new instance of the entity class. But you do not show an example of how this mapping would work. As a .NET API developer building real-life APIs everyday, I spend a lot of time creating DTO classes and writing code to manually map DTOs and EF entities. I am looking for the best solution for this. Do you have a video which shows the best way to do it? Or maybe you know of a tool that I can use to save time doing this boring stuff.
It would be a God-send (see what I did?) if you could do a video on implementing Single Sign-On / multiple apps sharing authentication in Blazor. I'm struggling with this right now and it seems a lot of other people are too.
Great Video! you said that you wouldn't inject the DataContext in the controller, but instead inject the "Service" into the constructor of the controller? For SQLServer, i'm guessing you would inject the db service in the program.cs file as a AddScope injection? and then use it to access the db in all your controllers?
It's a great practice to handle DataContext using Interface/Service rather than declaring it in the controllers so when the DataContext changes, you only make changes to the construct of the Interface/Service (meaning you only change it in a single location, instead of modifying all the controllers that is using the same context).
Great tutorial BUT the add row flow doesn’t work if the table has a primary key that’s auto-increment for unique ID. How would you alter the code to support an auto-increment primary key?
Would you have any link to an example of the "proper" way you mentioned to do the controller please? Instead of the "fat controller". I'm new to .NET and don't know how to google what you said.
Hi David. The term you're looking for is "Repository Pattern". You'll find relevant documentation if you Google "Repository Pattern" and "Entity Framework" together.
When update why not return the Hero that is being updated instead of full list of heroes. How can I do it? Great Video to learn the CRUD operations .NET 8 tahnk you!!
I'd love to see a MySQL server version of these types of video. Not all of us, here in the UK can get decent .Net hosting with more than one MS SQL DB, while having pretty much unlimited MySQL DBs on the same hosting as he single MS SQL DB.
@@xanderperlee1448 Not yet I'm still beavering away. I'm using the nuget packages (latest 8 versions, or pre-release); Microsoft.EntityFrameworkCore MySql.Connector Pomelo.EntityFrameworkCore.MySql I did get to a stage where the EF migrations set up the DB tables on MySQL. I might go back to a new Blazor Web API project, and start following the tutorial again. Trying to implement the MySQL stuff.
what is a reposiitory? a code repositiory? or somethnig dfiferent? also could youu show how to implement a service and a repository? can't fiind any info really onlinie, just argumments by people
A repository is a code pattern where your data access is abstracted to a class that attempts to mimic your data as an in memory list. It is popular in Domain Driven Design
Quick question.. What is the main purpose for the migration? Will it be still needed if i create a database tables on SQL directly? Do you have any article regarding the migration Thanks..
Data migration's main purpose is to create the database structure using the entities (tables) you have created, and apply all the changes to your database every time when you made changes to your entities. Meaning when the entities change (you added a new entity, you changed a column name in an existing entity, or you changed the column type), data migration will see these changes and will create a migration script (when you use the add-migration command) that will match the changes when you use the update-database command. Data migration keeps track on the changes you make on your code, and matches the structure of your database. As your app grows, your tables grows, and you don't need to manage it thru your SSMS (which is a great headache later on in production).
Hi Patrick, do you have theoretical written study material in your .net paid course? I'm interested because I don't know English well and I can't understand your speech well
hello patrick i have a question if i know how to make Web API does it count as backend developer? i mean does that means that i am a backend? (Also nice video and good luck
Hi Patrick, great turorial, thanks! However... when this is published to a folder for local IIS it returns a 500 error :/ any idea why? I've scoured the internet and there doesn't appear to be a solution.
By sending more explanations, we can solve this error, but I'm sorry. be solved like this in the file appsettings.json instead of local IP Replace the domain address
Thank you so much! I struggled for 2 days finding full complete tutorials on creating a full CRUD web API and your tutorial helped so much. Learned about the syntax and what tools to use!
You reached a level of trust for me that, i like the video before i start watching it, and at the end i think with my self, "yes, i knew it".
Congrats for your content, and hugs from Brazil to you, honestly, your channel is the most recommended by me for my friends! Even those who doesn't speak english hahahahaha
Wow, thank you so much! Really appreciate that!😊
since morning i stucked with some errors/exceptions after coming here i got the solution
thank you so much for a great course
It's just amazing course for beginners. Good job!
Thank you! Appreciate it. 😊
Thank you very much for the video tutorial, it became much clearer. It’s a pity that they didn’t use DTO as an example and didn’t break it down into services. I'm waiting for new videos
You're best teacher bro.
Wow, thank you so much!
Thank you. Be great if you could do the Database-First implementation whenever you show the Code-First implementation.
I think it's related but not necessary. Database-First is used on existing database model to convert it to classes, useful when migrating application, e.g. .Net 7 apps to .Net 8
Do you have any video describing all the architectural components of a full fledged blazor application (code-first preferably) like: Service, Controller, Context, Model, Database, Fronteend framework. Also with explanation on how do they work together from the higher view and when do we use each of them?
Will Be great to see an example using CRUD and modal popup dialogs
Excellent info, Patrick. Thank-you. Just to add - it may be a good idea not to use the "api/[controller]" naming convention as this may result in breaking changes when releasing updates; it's almost always safer to use a fixed route name.
Absolutely spectacular tutorial. Thank you.
You're very welcome! Thank you!
Thank you so much for this very helpfull video !!
You're so welcome! 😊
Fantastic lesson. You are helping understand this so well!! Thank you so much!
6:19 Well yeah, REST is very well standardized. Great tutorial!
This is such an onpoint video. Amazing work !
Hello
Thank you very much for your videos.
If possible a tutorial on.
Custom authentication from scratch.
Use of Tokens & Cookies.
and put Claims authentication on the server and client side.
Thank you very much.
Danke Für das toll Unterricht
I really appreciate your effort. As a beginner of .NET i learned lot of things from this video. I have one question about PUT request. Why don't you put ID on the route? is it .NET approach or anything?
I loved how you guess my thoughts in the minute 40:30 about the "List"😆
Hey Patrick great video, I know most of the stuff you do on Blazor is WebAssembly, is it possible you could do a video on how to add single account identity to a project that you configured without it at project creation, and you already have a database with a connection string?
Thanks,
Jordan
Amazing, thank u sooooo
can you create a playlist with all .NET 8 videos
Here it is: th-cam.com/play/PLF1jhYUTnHo4xzSbrznUEAsIl7upw3X7K.html Enjoy! ❤
Man this is insane, thanks, so much thanks i love you.
Glad I could help😊
Thanks for the great video Patrick. For Create/POST endpoint, you mentioned that the best way to do it is through a DTO that we then map to a new instance of the entity class. But you do not show an example of how this mapping would work.
As a .NET API developer building real-life APIs everyday, I spend a lot of time creating DTO classes and writing code to manually map DTOs and EF entities. I am looking for the best solution for this. Do you have a video which shows the best way to do it? Or maybe you know of a tool that I can use to save time doing this boring stuff.
Very good video! Thank you for your help and time!
Nice work
Thanks for the tutorial man, it was absolutely helpful appreciate it.
Thanks for explaining the .http file deleted without knowing what was for lol. But swagger and postman are still the winners.
This video is amazing, thank you so much!!!!
Thanks for this video Patrick.
My pleasure!😊
Clear and beautiful as usual. Thank you for sharing! I might ask my boss to pay me for the academy, but I don't know if they will agree :D
Please do! 😜
How EF Core [8] is different from .Net [8] ?
Maybe explain in another video the difference and purpose of each.
Thanks.
It would be a God-send (see what I did?) if you could do a video on implementing Single Sign-On / multiple apps sharing authentication in Blazor. I'm struggling with this right now and it seems a lot of other people are too.
you are GREAT
YOU are great! 😊
@@PatrickGod
Sir Plz Can you Create an ERP system 🙂
Thanks for the tutorial., it was absolutely helpful. I appreciate it
Thank you so much for making this video!
absolutely amazing content
thanks man
refreshed my knowledge
Hi Patrick, would appreciate if you make a video on Blazor server and controller API in one project using dapper generic functions.
Very good video! Thanks!
This is a great guide for learning.
This video saved me tooo much. Thank you
Great Video! you said that you wouldn't inject the DataContext in the controller, but instead inject the "Service" into the constructor of the controller?
For SQLServer, i'm guessing you would inject the db service in the program.cs file as a AddScope injection?
and then use it to access the db in all your controllers?
It's a great practice to handle DataContext using Interface/Service rather than declaring it in the controllers so when the DataContext changes, you only make changes to the construct of the Interface/Service (meaning you only change it in a single location, instead of modifying all the controllers that is using the same context).
Great Video!
Thanks!
Thank YOU! Very kind of you! ❤️
Great video. Thanks a lot.
Great tutorial BUT the add row flow doesn’t work if the table has a primary key that’s auto-increment for unique ID. How would you alter the code to support an auto-increment primary key?
Would you have any link to an example of the "proper" way you mentioned to do the controller please? Instead of the "fat controller". I'm new to .NET and don't know how to google what you said.
Hi David. The term you're looking for is "Repository Pattern". You'll find relevant documentation if you Google "Repository Pattern" and "Entity Framework" together.
excelent. Great tutorial
Thank uou guy, for this fantastic video.
Hello brother
Which visual studio theme are you using? In this video
When update why not return the Hero that is being updated instead of full list of heroes. How can I do it? Great Video to learn the CRUD operations .NET 8 tahnk you!!
Amazing video, it helps a lot
min 34:20 he just say " Pay attention here" *PAM, ADVERTISMENT* such a humor sense xDD
what previous knowledge or skills should i have to watch this course I am new and I just finished a c# fundamentals course
please reply😊
I suggest you check the title and search for those topics: .NET 8, Web API, Entity Framework, Code-First Migrations & SQL Server
I'd love to see a MySQL server version of these types of video.
Not all of us, here in the UK can get decent .Net hosting with more than one MS SQL DB, while having pretty much unlimited MySQL DBs on the same hosting as he single MS SQL DB.
did you @PixelProfessor already get it working with Mysql because im stuck trying?
@@xanderperlee1448 Not yet I'm still beavering away.
I'm using the nuget packages (latest 8 versions, or pre-release);
Microsoft.EntityFrameworkCore
MySql.Connector
Pomelo.EntityFrameworkCore.MySql
I did get to a stage where the EF migrations set up the DB tables on MySQL.
I might go back to a new Blazor Web API project, and start following the tutorial again. Trying to implement the MySQL stuff.
Which machine are you using for the development and video production?
awesome content
Thanks bro!
Thanks a lot!
Youre the best!
thx for this cool course
47:00 i think that you are not using the improved that EF 8 includes like Bulk Updates
i preciated for your works
Does anyone know if there is a direct Blazor companion to this video?
what is a reposiitory? a code repositiory? or somethnig dfiferent? also could youu show how to implement a service and a repository? can't fiind any info really onlinie, just argumments by people
A repository is a code pattern where your data access is abstracted to a class that attempts to mimic your data as an in memory list. It is popular in Domain Driven Design
Really good 👍🏻
thanks!
how migration will be happened in Staging and prod env
Hi thanks for this video.
I have a question...
I attach a breakpoint in my code but they never hit. Why? And how can ich fix it,
Do you know why I’ve really often the message : attempting to reconnect to the server ?
thank you
Which line of code here automatically increments the id? not in migration.
How do i connect to a mysql database ive made with docker ? What's the connection string ?
Quick question.. What is the main purpose for the migration?
Will it be still needed if i create a database tables on SQL directly?
Do you have any article regarding the migration
Thanks..
Data migration's main purpose is to create the database structure using the entities (tables) you have created, and apply all the changes to your database every time when you made changes to your entities.
Meaning when the entities change (you added a new entity, you changed a column name in an existing entity, or you changed the column type), data migration will see these changes and will create a migration script (when you use the add-migration command) that will match the changes when you use the update-database command.
Data migration keeps track on the changes you make on your code, and matches the structure of your database. As your app grows, your tables grows, and you don't need to manage it thru your SSMS (which is a great headache later on in production).
Hi Patrick, do you have theoretical written study material in your .net paid course?
I'm interested because I don't know English well and I can't understand your speech well
At time 46:49, what keystrokes did you use to multi rename hero to updateHero? Ah.. control r twice , I never used that .. very cool.
Ctrl+R+R - Enjoy! 😄
@@PatrickGodnanu nanu
ti amo grazie a te posso adottare coccioli yeahh
hello patrick i have a question if i know how to make Web API does it count as backend developer? i mean does that means that i am a backend? (Also nice video and good luck
can you make a video .NET 8 web API connecting with oracle SQL Developer?
what server do you connect to in sql server studio?
I went to the Academy link, but it didn't show any courses available. :(
I need exmble with ado and combobox
Make a of Angular 17 and . net 8
Please make video about graphql... With authorization
can you provide command used to create project in vs code
great
2:09
my visual studio show .net 8 preview only
how can i add .net8 lts version?
is there any sample if using existing DB with .NET 8
you are, in fact, the goat🥹
Hey , i saw error while scaffolding DbContext using CLI , it is possible to do it in .net 8 ?
keep going
why havent you touched upon how to use/call these api in a project
De los mejores
Great video. Can you Please do one video that deals with the existing database? That is we do not need to create it from VS2022.
Hi Patrick, great turorial, thanks! However... when this is published to a folder for local IIS it returns a 500 error :/ any idea why? I've scoured the internet and there doesn't appear to be a solution.
By sending more explanations, we can solve this error, but I'm sorry. be solved like this
in the file
appsettings.json
instead of local IP
Replace the domain address
Has anybody tried to mirror this code in VS2022?
14:15 anyone else hear this in Matt Berry's "new york citaayy" voice
I like i subscribe
Hi Your teaching way is too good
But I thought you would tell new thing in .net 8.0 but it just normal video 😟😟