C# Class Rock.Migrations.RockMigration

Custom Migration methods
Inheritance: DbMigration, Rock.Data.IMigration
Mostra file Open project: NewSpring/Rock

Public Methods

Method Description
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.

Private Methods

Method Description
EfMapPath ( string seedFile ) : string

Efs the map path.

Method Details

Sql() public method

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.
return void

SqlFile() public method

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.
return void