One thing to add is if you opted to do Dbase first and created a table on your own, make sure you add Table and Column annotiations in your Models or you will get 500 server errors.
Your Blazor E-Commerce video series course is very good. Thank you for that. Can you also show Database First approach. I have found that most companies already have databases in place, and I would like to see a Database First approach(instead of a Code First approach). Would like to see Scaffolding of an existing database.
Great suggestion! Thanks a lot for your feedback and for enrolling! You're so right about existing databases in organizations. Problem is, in my experience, these database lack proper foreign keys, a good design in general, and so on. This does make a db first approach harder. Still, let me think this through. 😊
@@PatrickGod Would love to see database-first approach used also. In my particular case the relation between multiple tables and/or getting data from one table that references other tables (without really knowing what the content is of those). Current project I'm working only allows me to access one table in a db (no logical reasoning behind that demand, but need to roll with it).
Okay so the answer for your question at 38:11 is that on your controller for the GET endpoint you didn't specify a route, therefore, it is understood as "/". The route is /api/superhero since it's in the SupoerHero Controller. If you would have specified [Route("superheroes")] you would have had to do a call to /api/superhero/superheroes. I do not have a clue why how you got a 200 for the call though :)
Isn't it because in the controller, in the GetSuperHeroes method, there's only "return OK(Heroes)"? I'm fairly new to this but it is my interpretation of why the 200 is shown.
Great video, thank you! Best tutorial. Too bad I dealt with Blazor and EF before then. But I gained knowledge regarding the structuring of the application
itwas a good tutorial, the best thing the fact that I did many mistakes I was able to understand more and try to solve those stupid mistakes by my self with reading code, really thanks I'm gonna move to the next one then build my first .net app Thanks a lot really !!!!
Hey Patrick! Great Video. It is teaching me so much. Quick question. In my SuperheroRazorpages file. My monster service is not lighting up the same color as yours in the for each loop and i can not show my data to the table. It appears to be injected correctly. Any Clue whats up?
Loved this video, and am also making my way through the E-Commerce course! I appreciate you showing us how to debug errors that came up along the way. For future videos, could you potentially show how to write unit and integration tests against Blazor, where possible? I've done a little bit on against WebAPIs and databases, but I'd love to see even a short video on how that works. Thanks so much!!
Thanks for this video really cool. I have not clear at all the logic route of api components(controller, interfase and service) can you make a little video explaining that working schema?
Thank you Sir Patrick for this valuable, useful and very practical tutorial. Sir, may I request on how to implement the CRUD using sql server? Thanks in advance.
Hi Patrick, big fan of your way of making the videos and explaining all the details....can you please make a video on CRUD operation in blazor server app in .net 6
@@PatrickGod actually I tried making a basic CRUD application, but faces issues during migration and database update, errors in the datamodel for null/not null values, and combination of startup.cs and program.cs
Hi, At first thanks for making such kind of good content. Actually i have a doubt in css isolation, how to isolate external css and how to apply css to a particular blazor component without affecting the other components, I will be very happy if you reply with some information and if possible try to make a video also for better understanding.
Hey Patrick, big fan, I'm always laughing at your funny comments and edits. I have an eye on that blazor* game course you have, it seems like a fun way to learn deeper functionality. I just have to finish my current Udemy course first. Keep up the good work, best regards.
Dude, you are amazing! just a quick question: you are going always from SuperHeroService to Server Solution, but how we can solve a communication from server solution to superheroservice or UI? I mean, How I can solve the communication if there is a UDP Listener or a SQL Watchdog in the server solution that is causing an event that some value must be shown into the user interface?
@@PatrickGod thanks a lot for your response... I coded with SignalR but I cannot imagine how to merge this two systems.... if you make a video of course I will check it. Thanks again!
If someone faces this error "A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - La cadena de certificación fue emitida por una entidad en la que no se confía.)" you can solve it just by adding "Encrypt=False" in your ConnectionSting.
needing the controller and two services for the functions...isn't that a bit overengineered by microsoft ? and won't it be much easier just to use a one to many relation in the dbcontext ?
@@PatrickGod Is it any tutorial about Audit Trail (logger that save user activity/event and their IP address to database like login, logout, create/edit something)? if not, Please make one Patrick
I tried to follow this amazing tutorial on .NET 7 everything ok until I added the Entity Framework and DBContext, and suddenly My Blazor app stucks in Loading and nothing happens, Whata can I do? Regards
where do i learn more about http implementations and how to use them / routes, and also fetching methods like firstOrdefault? if i wanted to deepdive more in your other courses? :)
Excellent job! Thanks a lot for the video! I think the reason non-existing or existing services return 200 with error is that the view is responding (not the API) How do I remove the /api path from the view? For them not to respond as not found and for the api to respond to the /api path request
Great videos. I am trying to get my head wrapped around all of this so I created a student class with multiple emails but I am stuck. Perhaps a video like your relationships video, but using regular ui components rather than just swagger ui.
Using EF7, when updating database with PM> dotnet ef database update , and error: provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted Add the following to the connection string: ; Trust Server Certificate=True;
Hi sir Patrick Almighty :P, can you show us how to implement "Services" without "Interfaces" on it? Please do a video for this.. learn a lot from all of your videos. Thank you sir Patrick Almighty ;-)
How can your wasm and api service operate on the same port? Mine are on a different ports, when I try to assign them the same port I get an error, obviously. The problem with them being on a different ports is that I am confused how to point http client to the correct uri with a correct port.
Hi Patrick, this tutorial is really useful, many thanks. Just a quick question please, I tried to replicate this but get the following error when I try and edit a record and invoke the single record Razor page: "Unhandled exception rendering component: '
hello, im following this tutorial but its giving me does not contain a definition for FirstName and no accessible extension method FirstName accepting a first argument of type .... could be found, are you missing a using directive or an assembly reference?
Thank you Patrick! This is a great tutorial, but I have one issue that I can't solve for several days now :( When I POST to my WebAPI to create a new hero using PostAsJsonAsync it sends null values to the controller. I managed to find an error that is thrown: System.Text.Json.JsonException: 'M' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0. I can't find a solution though :( Anyone having the same issue?
Although very interesting, I missed the usage of DTO's (Data Transfer Objects). Is there a reason that you did not include that aspect? In my opinion you should never have your models used by the client. The client should use only the DTO (e.g. the SuperHeroDto). Did I miss something?
Hi Patrick .. Your videos and courses are very useful .. Thanks a lot .. Just one comment .. I guess there is a duplication in code returning the list of heroes in ( GetSuperHeroes ) & ( GetDbHeroes ), you can only ( return Ok(await GetDbHeroes()); ) in ( GetSuperHeroes ) .. Best Regards ..
🚀 Join the .NET Web Academy with a 30% discount - closing soon!
👉 www.dotnetwebacademy.com/courses/academy?coupon=dnwas23yt
Gracias Mister Patrick, por compartir conocimiento..... saludos de los Andes Peruanos, se merece un coffee cappuccino
One thing to add is if you opted to do Dbase first and created a table on your own, make sure you add Table and Column annotiations in your Models or you will get 500 server errors.
One of the best tutorials! Thank you so much for your time and efforts for creating such a clear and succinct tutorial!
Thank you so much for your kind words! Glad you like the tutorial! 😊
Yes on the validation question, thank you!!!!
Your Blazor E-Commerce video series course is very good. Thank you for that. Can you also show Database First approach. I have found that most companies already have databases in place, and I would like to see a Database First approach(instead of a Code First approach). Would like to see Scaffolding of an existing database.
Great suggestion! Thanks a lot for your feedback and for enrolling!
You're so right about existing databases in organizations. Problem is, in my experience, these database lack proper foreign keys, a good design in general, and so on. This does make a db first approach harder. Still, let me think this through. 😊
@@PatrickGod Would love to see database-first approach used also. In my particular case the relation between multiple tables and/or getting data from one table that references other tables (without really knowing what the content is of those).
Current project I'm working only allows me to access one table in a db (no logical reasoning behind that demand, but need to roll with it).
I second to that. In my previous companies, I never experience making an app thru code-first approach, it's always database first.....
Second the second on DB first!!!!
@@PatrickGod Would definitely like to see a database first approach on this :-)
Thanks, came here only for the SQL setup and connection. very helpful
Glad it helped! Thanks for your feedback!
Okay so the answer for your question at 38:11 is that on your controller for the GET endpoint you didn't specify a route, therefore, it is understood as "/". The route is /api/superhero since it's in the SupoerHero Controller. If you would have specified [Route("superheroes")] you would have had to do a call to /api/superhero/superheroes. I do not have a clue why how you got a 200 for the call though :)
Isn't it because in the controller, in the GetSuperHeroes method, there's only "return OK(Heroes)"? I'm fairly new to this but it is my interpretation of why the 200 is shown.
Your attic room looks sooooo cozy.
Thanks! 😊
Great video, thank you! Best tutorial.
Too bad I dealt with Blazor and EF before then. But I gained knowledge regarding the structuring of the application
Glad I could help! Thanks a lot for your feedback, Ivan! 😊
Great job! Thank you very much for your work, Patrick.
Glad I could help! Thanks a lot for your feedback! 😊
Thank you for your time and willingness to share your knowledge.
Thanks a lot, very good tutorial. But I have a question. Is it possible to prepare such a guide for .NET MAUI BLAZOR applications?
Thank you very much, Bogdan! Sure, I've already got a .NET MAUI Blazor tutorial on my list. So, it's coming soon! 😊
Maui blazor crud with entity framework will be fantastic
itwas a good tutorial, the best thing the fact that I did many mistakes I was able to understand more and try to solve those stupid mistakes by my self with reading code, really thanks I'm gonna move to the next one then build my first .net app
Thanks a lot really !!!!
Glad you liked it! Thanks for your feedback! 😊
Thank you very much for your videos! I 'm always waiting for tutorial of DB first approach webapi. :)
You are very welcome! Thanks for your feedback. DB first is on my roadmap. 😉
I want to thank because you helped me solve a bug that I had for three weeks
Hey Patrick! Great Video. It is teaching me so much. Quick question. In my SuperheroRazorpages file. My monster service is not lighting up the same color as yours in the for each loop and i can not show my data to the table. It appears to be injected correctly. Any Clue whats up?
Great Job, learned a lot about Blazor and entity framework. Keep on going the good work. Thank you!
Thank you so much for your feedback! Means a lot! 😄
Very helpful! Thank you.
Thanks Patrick., Can I request another tutorial with image saving(post, put) and display(get) together how to use the tableview. thank you
Noted. Thanks for your feedback! 😊
Very good tutorial. Thank you much
Great video. Thank you
59:01
estoy viendo tu curso tiempo que no uso .net luego de esto para perfeccionar conocimientos que me recomiendas seguir
Excellent Course!!!!! Thanks the time you dedicated to this.
How would I do that using MySQL instead of SQL?
Also great tutorial, it really helped get me started
Nice demo. The only issue for me is to put the NavigationManager into the service. That is UI logic (navigation) in the access service.
this help me alot, im doing this program i am learning so good.!
Really amazing. Thanks
Most welcome 😊
Loved this video, and am also making my way through the E-Commerce course! I appreciate you showing us how to debug errors that came up along the way. For future videos, could you potentially show how to write unit and integration tests against Blazor, where possible? I've done a little bit on against WebAPIs and databases, but I'd love to see even a short video on how that works. Thanks so much!!
Thank you so much for your feedback and for enrolling! I added unit tests to my roadmap. Let me think this through. 😊
Good video. Thanks for examples crud in .net
You are welcome! Thanks a lot for your feedback! 😊
Thanks for this video really cool. I have not clear at all the logic route of api components(controller, interfase and service) can you make a little video explaining that working schema?
Hi Patrick, How do I show the data from IList in a dropdown?
Thank you Sir Patrick for this valuable, useful and very practical tutorial. Sir, may I request on how to implement the CRUD using sql server? Thanks in advance.
Thank you God!
Hi Patrick, big fan of your way of making the videos and explaining all the details....can you please make a video on CRUD operation in blazor server app in .net 6
Thank you for your feedback, Ankit! Your request is noted! ☺
@@PatrickGod actually I tried making a basic CRUD application, but faces issues during migration and database update, errors in the datamodel for null/not null values, and combination of startup.cs and program.cs
@@ankitmishra2612 Alright, let me see what I can do in a video. 🙂
excelente video, me parce que explica todo al detalle, lo bueno es que no importa que sea en inglés, con la opción de traducir, traduce muy bien
algunas cosas no son claras despues de este video que seria bueno profundizar em imagino que fundamentos de c# o blazor directamente?
Any plans to make a tutorial about webhooks with .Net 6.
Would really be interested.
Good idea! I'll add it to my roadmap. 😊
hi! Is there an e-mail address where I can reach you?
Hi, At first thanks for making such kind of good content.
Actually i have a doubt in css isolation, how to isolate external css and how to apply css to a particular blazor component without affecting the other components, I will be very happy if you reply with some information and if possible try to make a video also for better understanding.
prefect tutorial for blazor thank you
You're very welcome! 😊
For Mac-users, what do u recommended instead of SQL Server Express and SQL Server management studio?
Thank you !
You're welcome! Thanks for your feedback! 😊
I got your courses on Udemy… keep up the good work.
Awesome! Thank you so much, Alex!☺
How do you rerun the project when you download from github to be able to recreate the migrations?
Super Tutorial bro thank you so much
Happy to help! Thanks a lot for your feedback!
Hey Patrick, big fan, I'm always laughing at your funny comments and edits. I have an eye on that blazor* game course you have, it seems like a fun way to learn deeper functionality. I just have to finish my current Udemy course first.
Keep up the good work, best regards.
Thank you very very much! Means a lot, really. 😊
Dude, you are amazing! just a quick question: you are going always from SuperHeroService to Server Solution, but how we can solve a communication from server solution to superheroservice or UI? I mean, How I can solve the communication if there is a UDP Listener or a SQL Watchdog in the server solution that is causing an event that some value must be shown into the user interface?
Thank you very much! 😊I think you should have a look into SignalR. This might help. And maybe I should make a video about that. 😉Take care!
@@PatrickGod thanks a lot for your response... I coded with SignalR but I cannot imagine how to merge this two systems.... if you make a video of course I will check it. Thanks again!
hi! Is there an e-mail address where I can reach you?
If someone faces this error
"A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - La cadena de certificación fue emitida por una entidad en la que no se confía.)"
you can solve it just by adding "Encrypt=False" in your ConnectionSting.
ty vm for this amazing content. it help me a lot, maybe I get a new job from this
Thanks!
You're very welcome! 😊 And thank YOU so much! Really appreciate it! 😁
cảm ơn GOd nhìu lắm :> Love
great video really helpful intro will be getting the courses!
Awesome! Thank you so much!! 😊
needing the controller and two services for the functions...isn't that a bit overengineered by microsoft ? and won't it be much easier just to use a one to many relation in the dbcontext ?
Love this! Great video, thank you!
Glad you enjoyed it! Thank you so much! 😊
@@PatrickGod Is it any tutorial about Audit Trail (logger that save user activity/event and their IP address to database like login, logout, create/edit something)? if not, Please make one Patrick
Amazing video as always. Keep it up!🔥
Hi Joep! Is there an e-mail address where I can reach you?
I tried to follow this amazing tutorial on .NET 7 everything ok until I added the Entity Framework and DBContext, and suddenly My Blazor app stucks in Loading and nothing happens, Whata can I do? Regards
I am your fan, the other courses you have on Udemy from .NET Core 3.1, can i use it ? Or its become outdated ?
where do i learn more about http implementations and how to use them / routes, and also fetching methods like firstOrdefault? if i wanted to deepdive more in your other courses? :)
Great tutorial but I'm having challenges after I implement services what could be the solution it says failed to load resources
Excellent job! Thanks a lot for the video!
I think the reason non-existing or existing services return 200 with error is that the view is responding (not the API)
How do I remove the /api path from the view? For them not to respond as not found and for the api to respond to the /api path request
Good point! Thanks for the info! 😊
Gracias amigo, me salieron unos errores con mi proyecto, pero ya los solucionaré
Careful with strings represented as varchar(max) in SQL.
Great videos. I am trying to get my head wrapped around all of this so I created a student class with multiple emails but I am stuck. Perhaps a video like your relationships video, but using regular ui components rather than just swagger ui.
thanks a lot patric amazing explanation
You are really son of God!
Haha, thank you very much! 😊
Amazing, Thank you
My pleasure! Thanks a lot for your feedback! Hey there! 😊
you are a god
Thank you very much. 😅
i notice you ruin without debugging quite often is that why the hot reload isnt working ?
Should actually work without the debugging mode as well..
why my vs2022 does not work completion of async syntax automatically in oninitializedasync and onparameterssetasync like you?
one question why you put the variable so _http , i put this so http why dont choose so
Como se corrige lo del Update?
I was all about blazor but when I tried to use Identity I had trouble using the User to make relations to other tables of the database.
will you please create similar full stack app of type "Blazor MAUI HYBRID " ?
How to correct the update
I like it. Thank you
joining the bandwagon!
Appreciated
Using EF7, when updating database with PM> dotnet ef database update , and error:
provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted
Add the following to the connection string:
; Trust Server Certificate=True;
thank you very much bro
You are very welcome! 😊
I get stuck at 44:32 i can't access superhero dot anything.
Where can I find the souce code?
Hi sir Patrick Almighty :P, can you show us how to implement "Services" without "Interfaces" on it? Please do a video for this.. learn a lot from all of your videos. Thank you sir Patrick Almighty ;-)
How can your wasm and api service operate on the same port? Mine are on a different ports, when I try to assign them the same port I get an error, obviously. The problem with them being on a different ports is that I am confused how to point http client to the correct uri with a correct port.
Inside the blazor wasm project, for the uri, just use the address from your swagger browser window
Awesome tutorial. Your content and style are really engaging. Thank you.
can anyone tell how he calls controller method to the services i got after connecting to database
Hello, what is your font?
Audio normalization pretty please
Ja, bitte, every time an ad plays my speakers explode
Hi Patrick, this tutorial is really useful, many thanks. Just a quick question please, I tried to replicate this but get the following error when I try and edit a record and invoke the single record Razor page: "Unhandled exception rendering component: '
This usually happens when you don't have the server as startup project
a mi no me carga los valores del edit sale error
podrias subirlo a github me esta dnado errores en el minuto 33 xfa
hello, im following this tutorial but its giving me does not contain a definition for FirstName and no accessible extension method FirstName accepting a first argument of type .... could be found, are you missing a using directive or an assembly reference?
You have probably given your Hero page the same name as your Superhero class, at least that was the problem I was having
@@miguelmota8036 I think I am having the same problem. Do you just change the name of the page?
thank a lot
=)
Tks u sir
I bought the udemy course.
Awesome! Thank you so much! 😄
40:00 timestamp for later.
Thank you Patrick! This is a great tutorial, but I have one issue that I can't solve for several days now :( When I POST to my WebAPI to create a new hero using PostAsJsonAsync it sends null values to the controller. I managed to find an error that is thrown: System.Text.Json.JsonException: 'M' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0. I can't find a solution though :(
Anyone having the same issue?
Migrate entirely to HTTPS to have cookies sent to same-site subresources
Dont know why aal this tutorials are develop using SQL Server Express when you casn use SQL Server Developer Edition anf have the full stack.
Although very interesting, I missed the usage of DTO's (Data Transfer Objects). Is there a reason that you did not include that aspect? In my opinion you should never have your models used by the client. The client should use only the DTO (e.g. the SuperHeroDto). Did I miss something?
Hi Patrick .. Your videos and courses are very useful .. Thanks a lot .. Just one comment .. I guess there is a duplication in code returning the list of heroes in ( GetSuperHeroes ) & ( GetDbHeroes ), you can only ( return Ok(await GetDbHeroes()); ) in ( GetSuperHeroes ) .. Best Regards ..
This hour and a half video took me 5 hours lol