SqlOperation Class

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


Namespace:  System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)

public class SqlOperation : MigrationOperation

The SqlOperation type exposes the following members.

Public methodSqlOperation Initializes a new instance of the SqlOperation class.

Public propertyAnonymousArguments Gets additional arguments that may be processed by providers. (Inherited from MigrationOperation.)
Public propertyInverse Gets an operation that will revert this operation. (Inherited from MigrationOperation.)
Public propertyIsDestructiveChangeGets a value indicating if this operation may result in data loss. (Overrides MigrationOperation.IsDestructiveChange.)
Public propertySql Gets the SQL to be executed.
Public propertySuppressTransaction 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.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.