C# 클래스 Rock.Migrations.RockMigration

Custom Migration methods
상속: DbMigration, Rock.Data.IMigration
파일 보기 프로젝트 열기: NewSpring/Rock

공개 메소드들

메소드 설명
Sql ( string sql ) : void

Adds an operation to execute a SQL command. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

SqlFile ( string sqlFile ) : void

Runs the SQL found in a file.

비공개 메소드들

메소드 설명
EfMapPath ( string seedFile ) : string

Efs the map path.

메소드 상세

Sql() 공개 메소드

Adds an operation to execute a SQL command. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.
public Sql ( string sql ) : void
sql string The SQL.
리턴 void

SqlFile() 공개 메소드

Runs the SQL found in a file.
public SqlFile ( string sqlFile ) : void
sqlFile string The file the SQL can be found it relative to the application path.
리턴 void