Totally agree I was a teacher of Databases and Computer Programming at College and I can totally agree with this. Nick you have really natural talent to teach! Clear explanation. Pre presentation of the goals of the class... review of what was shown... Great work!
Great video! Really well explained and easy to follow. I had a hard time understanding videos from others creators because they skip explaining the boilerplate stuff. I love the you take your time building each file instead of scaffolding everything.
I just got admission to a Software company and surprisingly the use of core and Blazor sever app. And to be sincere this is the best video on the internet for a fresh start I watch a couple more but this 🔥🔥🔥. Please can you do more EFC AND BLAZOR CONTENTS 🙏🏼🙏🏼🙏🏼
Things get a little spicy when dealing with objects that have complex relationships/navigations. Seems to be difficult to find educational content involving that type of thing.
Thx Nick. This is useful as a beginner. One question about the CustomerService method AddCustomer. We could also do it as async and call it AddCustomerAsync, correct ? Of course, the method signature would change to public async Action AddCustomerAsync(), correct ? As a newbie, I am trying to understand when to use async/await and when not to.
Lots of arguments for and against async programming in different situations. This article has some good examples stackify.com/when-to-use-asynchronous-programming/
Thank you so much sir! That was a short and sweet video explaining some very important concepts. Honestly before this video I didn’t understood what was the point of using of Services . And now I understood that this is for data access and not to do it directly.
I really hope you can answer this questions. So in the tutorial you show how to insert a customer. But the questions is how do you insert a Order when you have that association or foreign key (class). I am trying to follow your tutorial but im struggling to do an insert statement with the orders class. Im wondering if there is something I am missing here. I gave the orders property customer a customer, but in the database it simply has an id so im not sure how that works.
Thanks for the video , i like how you can see the SQL query in the output window. Would be nice if you showed how to CRUD or atleast create with the order model since its a foreign key
Hi Nick! There is another question, when I click create first try after running, data can insert to database, but second time I tried create(The values are different), the error "Cannot insert explicit value for identity column in table 'Customers' when IDENTITY_INSERT is set to OFF."will be triggered, Do you have any idea?
Looks like you're trying to pass in a value for the 'id' column, but it is set to be managed on the SQL side. Take a look at the model you're inserting, and see if you've set a value for the id. If so, take it out and let SQL assign it.
@@nickproudprogrammer God bless you for this easiest EF with balzor, I have ever come across, but i continue to have the same SqlException: Cannot insert explicit value for identity column in table 'Customers' when IDENTITY_INSERT is set to OFF. and i have checked my code very well and im using the same Model you used. Pls what could be wrong.
Excellent stuff! A clear example how to use DbContext factory with Blazor Server as recommended by Microsoft. When you say "using (var context = _dbContextFactory...)" the DbContext instance will get disposed automatically as it should, right?
Thanks Gavin! You'd want to take the entity collection you get from EF and loop over it, adding the relevant table rows in html for each row of data. If you want to go through your issue a bit more detail, get in touch with me here www.automationmission.com/contact/
I got stuck when adding the initial migration with a "The specified deps.json [C:\Users\xxx\source epos\New folder\BlazorDemo\BlazorDemo\bin\Debug et7.0\BlazorDemo.deps.json] does not exist" error and did not find solution.
Hi Nick! Thanks for your guiding! I followed your code, but click create button no response, do you have any idea? Thanks a lot! I searched and tried several ways but no success