C# 클래스 Rock.Data.RockContext

Entity Framework Context
상속: DbContext
파일 보기 프로젝트 열기: SparkDevNetwork/Rock 1 사용 예제들

공개 메소드들

메소드 설명
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