C# Класс Rock.Migrations.RockMigration

Custom Migration methods
Наследование: DbMigration, Rock.Data.IMigration
Показать файл Открыть проект

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

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