I know we can use multiple datacontexts in a WEB API solution? But how dow we resolve them using UnityOfconfig?
The problem is we have multiple DBcontexts in our WEBAPI soulution. Although the DBContexts never interact each other, i have no clue on declaring them in Unity Of Config as it gives ambiguous results? The example provided in the codeplex project deals only
with one DBContext. what if we there are multiple DBContexts? For example....
container.RegisterType<IDataContextAsync, DBContext1>(new PerRequestLifetimeManager())
container.RegisterType<IDataContextAsync, DBContext2>(new PerRequestLifetimeManager())