HistoryOperation Class

Definition

Operation representing DML changes to the migrations history table. The migrations history table is used to store a log of the migrations that have been applied to the 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 HistoryOperation : System.Data.Entity.Migrations.Model.MigrationOperation
type HistoryOperation = class
    inherit MigrationOperation
Public Class HistoryOperation
Inherits MigrationOperation
Inheritance
HistoryOperation
Derived

Constructors

HistoryOperation(IList<DbModificationCommandTree>, Object)

Initializes a new instance of the HistoryOperation 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.

HistoryOperation(String, String, Object)

Initializes a new instance of the HistoryOperation class.

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)
CommandTrees

A sequence of commands representing the operations being applied to the history table.

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.

MigrationId

Gets the name of the migration being affected.

Table

Gets the name of the migrations history table.

Applies to