Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Typed Factory? How do we achieve in ASP.NET 5.0/Core 1.0

$
0
0

Hi !!

We are trying to implement "Adding support for a single connection string with multiple Entity Framework models using Dependency Injection" in ASP.NET 5.0 with EF 6.1.3. We are following article (http://rhamesconsulting.com/2014/01/29/adding-support-for-a-single-connection-string-with-multiple-entity-framework-models-using-dependency-injection/). Castle Windsor has something called "Typed Factory". What is "Typed Factory"? How do we achieve the same in ASP.NET 5.0/Core 1.0

// Register the IEntityFrameworkContextFactory as a Typed Factory
container.AddFacility<TypedFactoryFacility>()
.Register(
Component.For<IEntityFrameworkContextFactory>()
.AsFactory());


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>