ConventionEntityTypeExtensions.RemoveProperty 方法

定义

从此实体类型中删除属性。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty RemoveProperty (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
static member RemoveProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
<Extension()>
Public Function RemoveProperty (entityType As IConventionEntityType, name As String) As IConventionProperty

参数

entityType
IConventionEntityType

实体类型。

name
String

要删除的属性名称。

返回

已删除的属性。

适用于