C# Class Rock.Migrations.RockMigration

Custom Migration methods
Inheritance: DbMigration, Rock.Data.IMigration
Afficher le fichier Open project: NewSpring/Rock

Méthodes publiques

Méthode 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

Méthode Description
EfMapPath ( string seedFile ) : string

Efs the map path.

Method Details

Sql() public méthode

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.
Résultat void

SqlFile() public méthode

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.
Résultat void