KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.Data.EF.UniversalContextFactory Class Reference

The context factory that searches the end-type context factory by provider name More...

Public Member Functions

 UniversalContextFactory (IComponentContext componentContext)
 Initializes a new instance of the UniversalContextFactory class. More...
 
TContext CreateContext< TContext > (string providerName, string connectionString, string databaseName=null)
 Creates a new context More...
 

Detailed Description

The context factory that searches the end-type context factory by provider name

Definition at line 23 of file UniversalContextFactory.cs.

Constructor & Destructor Documentation

◆ UniversalContextFactory()

KlusterKite.Data.EF.UniversalContextFactory.UniversalContextFactory ( IComponentContext  componentContext)

Initializes a new instance of the UniversalContextFactory class.

Parameters
componentContextThe windsor container.

Definition at line 36 of file UniversalContextFactory.cs.

Member Function Documentation

◆ CreateContext< TContext >()

TContext KlusterKite.Data.EF.UniversalContextFactory.CreateContext< TContext > ( string  providerName,
string  connectionString,
string  databaseName = null 
)

Creates a new context

Template Parameters
TContextThe type of context
Parameters
providerNameThe database provider name
connectionStringThe database connection string
databaseNameThe database name
Returns
The new context
Type Constraints
TContext :DbContext 

Definition at line 49 of file UniversalContextFactory.cs.


The documentation for this class was generated from the following file: