SqlOperation Class

Definition

Represents a provider specific SQL statement to be executed directly against the target database.

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 class SqlOperation : System.Data.Entity.Migrations.Model.MigrationOperation
type SqlOperation = class
    inherit MigrationOperation
Public Class SqlOperation
Inherits MigrationOperation
Inheritance
SqlOperation

Constructors

SqlOperation(String, Object)

Initializes a new instance of the SqlOperation class.

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.

Properties

AnonymousArguments

Gets additional arguments that may be processed by providers.

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.

(Inherited from MigrationOperation)
Inverse

Gets an operation that will revert this operation.

(Inherited from MigrationOperation)
IsDestructiveChange

Gets a value indicating if this operation may result in data loss.

Sql

Gets the SQL to be executed.

SuppressTransaction

Gets or sets a value indicating whether this statement should be performed outside of the transaction scope that is used to make the migration process transactional. If set to true, this operation will not be rolled back if the migration process fails.

Applies to