HistoryOperation Constructors

Definition

Overloads

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.

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.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public HistoryOperation (System.Collections.Generic.IList<System.Data.Entity.Core.Common.CommandTrees.DbModificationCommandTree> commandTrees, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.HistoryOperation : System.Collections.Generic.IList<System.Data.Entity.Core.Common.CommandTrees.DbModificationCommandTree> * obj -> System.Data.Entity.Migrations.Model.HistoryOperation
Public Sub New (commandTrees As IList(Of DbModificationCommandTree), Optional anonymousArguments As Object = null)

Parameters

commandTrees
IList<DbModificationCommandTree>

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

anonymousArguments
Object

Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.

Attributes

Applies to

HistoryOperation(String, String, Object)

Initializes a new instance of the HistoryOperation class.

protected HistoryOperation (string table, string migrationId, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.HistoryOperation : string * string * obj -> System.Data.Entity.Migrations.Model.HistoryOperation
Protected Sub New (table As String, migrationId As String, Optional anonymousArguments As Object = null)

Parameters

table
String

Name of the migrations history table.

migrationId
String

Name of the migration being affected.

anonymousArguments
Object

Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.

Applies to