Autofac Generics Registration
I have one c# project which is using libraries from Ardalis Specification , I need to work with two different DbContext.
So, from Autofac side I need to register generics which will implement IRepository, IReadRepository .With my current code when I should use repository related to one SapScriptDbContext it is throwing me an error “System.ArgumentException: Cannot create a DbSet for ‘CooisHeader’ because this type is not included in the model for the context.”