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.

C#
[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);

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

Entity Framework 6.2.0
Produkt Versioner
Entity Framework 6.2.0

HistoryOperation(String, String, Object)

Initializes a new instance of the HistoryOperation class.

C#
protected HistoryOperation (string table, string migrationId, object anonymousArguments = 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

Entity Framework 5.0.0 och Entity Framework 4.3.1
Produkt Versioner
Entity Framework 4.3.1, 5.0.0