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.
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!
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
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?
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.
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
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.
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.
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
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
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?
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.
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
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!!
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?
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
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).
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, 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