Clean Architecture Explained: A Step-by-Step Guide to a ToDo App

  Рет қаралды 807

Learn Smart Coding

Learn Smart Coding

Күн бұрын

Пікірлер: 16
@philippeschaeffer8869
@philippeschaeffer8869 14 күн бұрын
Thank you very much. You are a great teacher. Very cool !
@learnsmartcoding
@learnsmartcoding 14 күн бұрын
Thank you! 😃
@somsharp
@somsharp Ай бұрын
Thank you for the fantastic content! Just a suggestion-it would be wonderful if you could consider including Azure AD login for Swagger in this tutorial.
@learnsmartcoding
@learnsmartcoding Ай бұрын
Thank you. Sure, I added to the list.
@DotnetKing-g2q
@DotnetKing-g2q Ай бұрын
Hi Karthik thankyou so much for your amazing content, can I expect UI for this todo app.
@learnsmartcoding
@learnsmartcoding Ай бұрын
Yes, definitely
@MP_04_02
@MP_04_02 Ай бұрын
KK sir, how would I register DI for DBContext class for the database in SQL server ? Sir I have added the EF core package in Infra layer so how do I register DI for DBContext in program.cs ? I hope you got my point
@learnsmartcoding
@learnsmartcoding Ай бұрын
Hi MP, Thank you for the question. For the DBContext, we register in the program.cs github.com/learnsmartcoding/CleanArchitecture-ToDoApp-DotNet8-WebApi/blob/main/TodoApp.WebAPI/Program.cs#L47 With this, you can use it as mentioned below. With this, the app can provide an instance of DbContext to the repository. github.com/learnsmartcoding/CleanArchitecture-ToDoApp-DotNet8-WebApi/blob/main/TodoApp.Infrastructure/Repositories/UserRepository.cs#L17 Hope I answered your question. Please ask if you have any other questions or if you need more info on the current question, feel free to let me know. I'm happy to answer! Happy coding!
@salar1997
@salar1997 Ай бұрын
you will have to use builder.Services.AddDbContext just like this one builder.Services.AddDbContext(options => { options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")); }); and in appsettings: "ConnectionStrings": { "DefaultConnection": "your connectionstring" } but i prefer to make a di injection class in the same project and send it over via IServiceCollection to keep program.cs cleaner
@MP_04_02
@MP_04_02 Ай бұрын
@salar1997 yes I got that but dbcontext requires EF okay .. EF package has been installed in only Infrastructure layer
@MP_04_02
@MP_04_02 Ай бұрын
@@learnsmartcoding thanks sir I got it now .. we have to use the reference of Infra layer in API project so as to use EF DBconext in program.cs
@salar1997
@salar1997 Ай бұрын
@@MP_04_02 yeah i missunderstood, but instead of making a DI class only for dbcontext, just make a DependencyInjection class in infrastructure and lay dbcontext and the repository services there instead, then its not neccessary to add them in program.cs
@VijayPatil-id6yg
@VijayPatil-id6yg Ай бұрын
how many years of experience you have as .net full stack developer?
@learnsmartcoding
@learnsmartcoding Ай бұрын
Hi Vijay , I have 15+ years of experience. Hope you liked this video.
@VijayPatil-id6yg
@VijayPatil-id6yg Ай бұрын
@@learnsmartcoding yes I really liked this video and May I request you to use Hindi also or maybe another channel in hindi
How to Set Up In-Memory Database in 5 Minutes!
15:10
Learn Smart Coding
Рет қаралды 102
Set Up Swagger UI Authentication with Azure AD | Step-By-Step Guide
16:13
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Stop Breaking Your Code - Learn Unit Testing Now
24:36
Learn Smart Coding
Рет қаралды 165
Angular 18 Resolver: Pre-Load Data Complete Guide
6:55
Learn Smart Coding
Рет қаралды 346
Mastering Angular 18's @Input and @Output for Seamless Data Sharing
14:51
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Conquer the .NET Core and Web API Interview in 2024!
25:24
Learn Smart Coding
Рет қаралды 560
Angular 18 Lazy Loading Guide: Traditional vs. Standalone Components
8:20
How to Use GitHub Copilot in VS Code for Free | Step-by-Step Guide
10:45
Secure Sign-In Made EASY With Azure AD B2C's BEST MFA Tips!
10:36
Learn Smart Coding
Рет қаралды 180