C# Class Rock.Data.RockContext

Entity Framework Context
Inheritance: DbContext
Datei anzeigen Open project: SparkDevNetwork/Rock Class Usage Examples

Public Methods

Method Description
RockContext ( string nameOrConnectionString ) : System

Initializes a new instance of the RockContext class. Use this if you need to specify a connection string other than the default

Protected Methods

Method Description
OnModelCreating ( DbModelBuilder modelBuilder ) : void

This method is called when the context has been initialized, but before the model has been locked down and used to initialize the context.

Private Methods

Method Description
RockContext ( ) : System

Method Details

OnModelCreating() protected method

This method is called when the context has been initialized, but before the model has been locked down and used to initialize the context.
protected OnModelCreating ( DbModelBuilder modelBuilder ) : void
modelBuilder DbModelBuilder The builder that defines the model for the context being created.
return void

RockContext() public method

Initializes a new instance of the RockContext class. Use this if you need to specify a connection string other than the default
public RockContext ( string nameOrConnectionString ) : System
nameOrConnectionString string Either the database name or a connection string.
return System