C# Класс Rock.Data.RockContext

Entity Framework Context
Наследование: DbContext
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
RockContext ( ) : System

Описание методов

OnModelCreating() защищенный метод

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.
Результат void

RockContext() публичный метод

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.
Результат System