Dive deep into the world of programming and technology with us. Whether you're a seasoned developer or just starting out, our channel offers something for everyone.
From coding tutorials and tech reviews to industry insights and project showcases, we bring you a steady stream of content to fuel your passion for tech. Subscribe and overdose on code with us-let's push the limits of what's possible, together!
Thanks for your greate futorial. Just what I was looking for to continue learning Blazor. But shouldn't their be an error message when you login with an wrong username and password?
Hi @CentauriDK. You're right. In a real project, we need to handle user login failures, and the password should be encrypted before being saved to the database. I may handle this in the next video. Thanks for your question!
Hi @tavara7279, I haven't implemented authentication in this part. If you want to see authentication and role-based authorization, please check my Part 3 video here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oqpNQxEfz_Y.html
Very good course. The layers make sense. The code is clean. Some tables like user and claims are missing, don't you think? I just don't understand why not use Identity? Even if it was just to create the tables... But anyway, your content is very good and well explained, thank you.🕶😀 Continue this series👍
@@luizfredericojr Thanks for your kind words. Good question! For simplicity, I'm not implementing user verification in this video. I plan to implement user verification using Identity and add refresh tokens in the next video 😊😊
Thanks for the greate tutorial. Its exatly what I am currently working with. Cant wait for the next part Hope you also include that the users login are saved in the database for a real world example.
@@garamburito Hi. Thank you for watching. Do you mean .NET Aspire? That is a lightweight framework designed to help developers get started with .NET Core in a more streamlined way, focusing on rapid development and deployment. It offers a simplified setup, essential tools, and features that are especially useful for building modern web applications with minimal overhead
Muchas gracias por el video, desde hace tiempo que quería saber cómo hacer una aplicación fullstack, solo he estudiado el desarrollo de API, no he tocado front para nada, tu video me sirvio mucho, gracias. saludos desde Colombia.
Repository is implemented in ef core dbcontext class so creating the repository classes is anti pattern and caused complexity and decreasing performance.
@@MohammadKomaei Hi. EF Core does not implement the repository pattern out of the box. EF Core provides a DbContext for data access, but it doesn’t include a repository layer. The repository pattern can be implemented on top of EF Core if desired, but it is not a built-in feature.😊😊
your videos are great & self explained. it would be highly appreciated if you please give next video on refresh token & cascading master tables & pdf excel export on that same project
In my opinion, this is a very useful course. For those new to BlazorApp (like me). I have one question: in your opinion for "medium volume applications" which "application architecture" is better: "Clean Architecture" or "Modular Monolith"?
Thank you for your kind words! As for your question, both Microservice Architecture and Modular Monolith have their advantages, and the choice depends on your specific needs. For a medium-volume application, Modular Monolith might be more practical if you're aiming for simplicity and faster development. However, if you anticipate needing to scale or add complexity in the future, Microservice Architecture might be a better long-term choice ☺☺
@@dosehieu Thanks for the reply. One additional question. In this project, are you thinking of developing some "architecture"? Or it will be just one "monolithic application", which for "one example" is actually quite enough.
Hi @@ToniTodorov-g8z, In this project, I’m leaning towards a Modular Monolith approach for simplicity, as an example 😊 If you want to learn more about the Architecture, check out my video on Microservice Architecture here. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CbDgOlqBvrs.html
Hi @lukevincent4397, sorry about the inconvenience. This is my first video. In the next video, I will change the font size and improve the image quality. Thank you for letting me know 😊😊
Hi @osamaayesh9495, you can use either the Code First approach or the DB First approach. However, in real projects, we often avoid using them because we want to apply our own naming conventions. For example, if you have a new table named Order, just go to the database and create the Order table. Then, create a model class named OrderModel.cs and declare the DbSet for it in the DbContext. When you run the app, it will automatically connect them😊😊
@@dosehieu okey thanks but so if i follow ur step in this video with avoiding code first and data base i will automatically connect to sql server ? cuz u in this video didn't create database and table product so i must creat them then follow ur steps ?
Hi @osamaayesh9495, you don't need to create the database beforehand. As you can see in the DbContext, I have this Database.EnsureCreated();. The first time you run the app, if the database doesn't exist, Entity Framework will automatically create it. 😊
Hi @@osamaayesh9495 If you need to change anything, let's update both the database and the model. It will automatically connect. For example, if I want to add a column 'Discount' to the 'Product' table, just go to the database and create that column, then go to the Product model and add the 'Discount' property ☺
at 2:10, I'm getting a few errors: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<int>' to 'Microsoft.AspNetCore.Components.EventCallback' Cannot implicitly convert type 'int' to 'string' Then it repeats most again. This is from your github and just adding the beginner parts.
Hi @netrunner1987, ensure that at 2:10, you just add a submit button, then set OnValidSubmit to the Submit function. Can you see where your error shows? In which file and on what line?
Great tutorial, however, I'm having issues at 22:25. My create order button does not do anything (no browser alert, no posting new orders). I'm assuming the @onclick method is not triggering for me at all, has anyone encountered anything like this? Posting new orders works fine on swagger ui.
Hi @nedas6235, in the CreateOrder function, make sure to copy the correct Order address in OrderService => LaunchSettings.json. If you're still stuck, send me your repository link, and I'll take a look. 😊😊
@@dosehieu Hey, I managed to figure it out, I added <Routes @rendermode="InteractiveServer" /> to my app.razor file, which fixed the issue. Now the button works as intended 🙂
Hi @QaisarArsalan, I didn't use Code First in this example. If you need to make any changes to the database, first update your table, then update the model class for that table. They just need to map to each other. Migration is not required ☺☺