C# Class Rock.Data.RockContext

Entity Framework Context
Inheritance: DbContext
Afficher le fichier Open project: SparkDevNetwork/Rock Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
RockContext ( ) : System

Method Details

OnModelCreating() protected méthode

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.
Résultat void

RockContext() public méthode

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.
Résultat System