MutableEntityTypeExtensions.RemoveProperty(IMutableEntityType, String) 方法

定义

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

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

参数

entityType
IMutableEntityType

实体类型。

name
String

要删除的属性名称。

返回

已删除的属性。

适用于