Share via


InsertHistoryOperation Class

Definition

Represents inserting a new record into the migrations history table. The migrations history table is used to store a log of the migrations that have been applied to the database.

public class InsertHistoryOperation : System.Data.Entity.Migrations.Model.HistoryOperation
type InsertHistoryOperation = class
    inherit HistoryOperation
Public Class InsertHistoryOperation
Inherits HistoryOperation
Inheritance
InsertHistoryOperation

Constructors

InsertHistoryOperation(String, String, Byte[], Object)

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

(Inherited from HistoryOperation)
CreatedOn

Gets the value to store in the history table indicating when this entry was created.

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.

(Inherited from HistoryOperation)
Model

Gets the value to store in the history table representing the target model of the migration.

ProductVersion

Gets the value to store in the history table indicating the version of Entity Framework used to produce this migration.

Table

Gets the name of the migrations history table.

(Inherited from HistoryOperation)

Applies to