C# Tutorial - Repository Pattern C# Dependency Injection with Autofac | FoxLearn

  Рет қаралды 16,339

Fox Learn

Fox Learn

Күн бұрын

Repository Pattern C# Dependency Injection with Autofac in Windows Forms Application.
Autofac is an IoC container for Microsoft .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity.
Website: foxlearn.com

Пікірлер: 24
@TurntableTV
@TurntableTV 3 жыл бұрын
Hey, Fox Learn! Thank you for the insightful videos! I do have one suggestion: please make a series with a real-world project in which we can use these technologies.
@foxlearn
@foxlearn 3 жыл бұрын
OK. Thank you for your suggestion. I'll upload soon !
@mzolamelikhaya2670
@mzolamelikhaya2670 3 жыл бұрын
I agree man. I really hope they upload it.
@mzolamelikhaya2670
@mzolamelikhaya2670 3 жыл бұрын
This video was very helpful to me. Thank you Fox Learn. Your videos are always so helpful
@shandysawyer
@shandysawyer 2 жыл бұрын
The main problem with this example is Form1 itself is not being resolved by Autofac even though you're registering it. The comment "apply form1" where the form is registered makes no sense. You should instead have the container resolve the form1 itself and then left Autofac resolve the rest of the dependency chain for you (i.e. IProductRepository).
@Brofbrofs
@Brofbrofs 3 жыл бұрын
Hello there, I really enjoy you content and your videos have been helpful a ton. However I have a video Suggestion/Question, can you please make a video about adding record with foreign keys.
@juanlopez6557
@juanlopez6557 3 жыл бұрын
Cool!!, very good, Happy New Year, and Merry Christmas from Spain.....
@foxlearn
@foxlearn 3 жыл бұрын
You too. Thank you so much !
@CarlosEnriqueHuamanSegovia
@CarlosEnriqueHuamanSegovia 2 жыл бұрын
Thank you. Genial!!!!
@asif7127
@asif7127 3 жыл бұрын
I always use unity container for dependency.is there any benefit over it
@foxlearn
@foxlearn 3 жыл бұрын
Thank you !
@grimpowsify
@grimpowsify Жыл бұрын
dont understand why you dont do a "Application.Run(Container.Resolve())" instead of creating new Form1 and pass it the dependency, cose here there is no use of automatic dependency injection, example if your form1 now use another requirement like "SellerRepository" you also have to add it in the new Form1 instanciation as well...
@knowledgeispower2937
@knowledgeispower2937 3 жыл бұрын
hello, Using C# xamarin for Android Application. What is the best why to read & write to Windows shared folder & file.
@foxlearn
@foxlearn 3 жыл бұрын
Thank you for your suggestion. Let me try to research
@clidton
@clidton 3 жыл бұрын
okay so we don't need to create object again and again for calling functions if i have 50 repositor objects where i do inject them in program.cs?
@clidton
@clidton 3 жыл бұрын
like products,category,employee,offers, etc etc i have 50 classes/sql tables
@foxlearn
@foxlearn 3 жыл бұрын
Yes, You can configure in program class or config in app.config file
@clidton
@clidton 3 жыл бұрын
@@foxlearn thanks for reply app.config how?
@swerytv4342
@swerytv4342 3 жыл бұрын
thanks
@foxlearn
@foxlearn 3 жыл бұрын
You're welcome! Thank you !
@ralofpatel470
@ralofpatel470 3 жыл бұрын
Don't why you have to do dotnet restore everytime
@foxlearn
@foxlearn 3 жыл бұрын
Because the project error
@TheBausahab
@TheBausahab 3 жыл бұрын
fluently...
@foxlearn
@foxlearn 3 жыл бұрын
Thank you !
Dependency injection fundamentals in C# - DI vs IoC vs DIP
13:30
Amichai Mantinband
Рет қаралды 35 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 27 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 65 МЛН
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 72 МЛН
Repository Pattern
11:08
Coding Concepts
Рет қаралды 68 М.
Dependency Injection in Desktop Apps
14:00
Coding Tutorials
Рет қаралды 5 М.
C# Dependency Injection with Autofac
54:45
IAmTimCorey
Рет қаралды 295 М.
Dependency Injection in .NET Core (.NET 6)
1:00:32
IAmTimCorey
Рет қаралды 191 М.
Dependency Injection
45:17
Microsoft Visual Studio
Рет қаралды 147 М.
Creating a C# console application with dependency injection
20:07
Cronin Technology
Рет қаралды 22 М.
Dependency Injection in C# using Autofac
11:13
Claudio Bernasconi
Рет қаралды 49 М.