I have an app using the IObjectState in my entities (got the idea from Julie Lerman). I really like your framework implementation and had to take advantage. I'm using it with Bounded Contexts and I'm using Autofac for IoC registration in an API.
When trying to register a second context with its services in Autofac, it throws an error. Problem is trying to register multiple DbContexts with same IDataContextAsync.
I tried duplicating it in this solution by adding a bounded context. I added a copy of NorthwindContext to NorthwindContext2 and tried registering it in Unity.
Thank you in advance,
Ronnie
When trying to register a second context with its services in Autofac, it throws an error. Problem is trying to register multiple DbContexts with same IDataContextAsync.
I tried duplicating it in this solution by adding a bounded context. I added a copy of NorthwindContext to NorthwindContext2 and tried registering it in Unity.
-
.RegisterType<IDataContextAsync, NorthwindContext2>(new PerRequestLifetimeManager())
When trying to access the Customer View, an error is thrown.
Thank you in advance,
Ronnie