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

preview_player
Показать описание
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.

Рекомендации по теме
Комментарии
Автор

This video was very helpful to me. Thank you Fox Learn.

Your videos are always so helpful

mzolamelikhaya
Автор

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).

shandysawyer
Автор

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.

JohnnyN-I
Автор

Cool!!, very good, Happy New Year, and Merry Christmas from

juanlopez
Автор

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.

Brofbrofs
Автор

I always use unity container for dependency.is there any benefit over it

asif
Автор

dont understand why you dont do a 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...

grimpowsify
Автор

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
Автор

hello,
Using C# xamarin for Android Application.
What is the best why to read & write to Windows shared folder & file.

knowledgeispower
Автор

Don't why you have to do dotnet restore everytime

ralofpatel
visit shbcf.ru