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
|
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.
|
Method | Description | |
---|---|---|
RockContext ( ) : System |
protected OnModelCreating ( DbModelBuilder modelBuilder ) : void | ||
modelBuilder | DbModelBuilder | The builder that defines the model for the context being created. |
return | void |
public RockContext ( string nameOrConnectionString ) : System | ||
nameOrConnectionString | string | Either the database name or a connection string. |
return | System |