HistoryOperation 构造函数

定义

重载

HistoryOperation(IList<DbModificationCommandTree>, Object)

初始化 HistoryOperation 类的新实例。

实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。

HistoryOperation(String, String, Object)

初始化 HistoryOperation 类的新实例。

HistoryOperation(IList<DbModificationCommandTree>, Object)

初始化 HistoryOperation 类的新实例。

实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。

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

参数

commandTrees
IList<DbModificationCommandTree>

表示要应用于历史记录表的操作的命令树序列。

anonymousArguments
Object

使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。

属性

适用于

HistoryOperation(String, String, Object)

初始化 HistoryOperation 类的新实例。

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)

参数

table
String

迁移历史记录表的名称。

migrationId
String

受影响的迁移的名称。

anonymousArguments
Object

提供程序可能处理的其他参数。 使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。

适用于