AlterTableOperation 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 AlterTableOperation 类的新实例。 实体框架迁移 API 并非旨在接受不受信任的源 ((例如应用程序) 的最终用户)提供的输入。 如果从此类源接受输入,则应先对其进行验证,然后再传递到这些 API,以防止 SQL 注入攻击等。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterTableOperation (string name, System.Collections.Generic.IDictionary<string,System.Data.Entity.Infrastructure.Annotations.AnnotationValues> annotations, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.AlterTableOperation : string * System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> * obj -> System.Data.Entity.Migrations.Model.AlterTableOperation
Public Sub New (name As String, annotations As IDictionary(Of String, AnnotationValues), Optional anonymousArguments As Object = null)
参数
- name
- String
批注已更改的表的名称。
- annotations
- IDictionary<String,AnnotationValues>
表上已更改的自定义批注。
- anonymousArguments
- Object
提供程序可能处理的其他参数。 使用匿名类型语法指定参数,例如“new { SampleArgument = ”MyValue“ }”。
- 属性