共用方式為


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

要移除之屬性的名稱。

傳回

已移除的屬性。

適用於