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