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

Data context creation factory contract More...

Inheritance diagram for KlusterKite.Data.EF.IContextFactory:
KlusterKite.Data.EF.BaseContextFactory KlusterKite.Data.EF.InMemory.InMemoryContextFactory KlusterKite.Data.EF.Npgsql.PostgresContextFactory

Public Member Functions

TContext CreateContext< TContext > (string connectionString, string databaseName=null)
 Creates context attached to data source. Data source will be used as is. More...
 

Properties

string ProviderName [get]
 Gets a unique provider name More...
 

Detailed Description

Data context creation factory contract

Definition at line 20 of file IContextFactory.cs.

Member Function Documentation

◆ CreateContext< TContext >()

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

Creates context attached to data source. Data source will be used as is.

Template Parameters
TContextType of context to create
Parameters
connectionStringThe connection String.
databaseNameThe database Name.
Returns
The data context

Implemented in KlusterKite.Data.EF.BaseContextFactory.

Type Constraints
TContext :DbContext 

Property Documentation

◆ ProviderName

string KlusterKite.Data.EF.IContextFactory.ProviderName
get

Gets a unique provider name

Definition at line 25 of file IContextFactory.cs.


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