IConventionEntityType.RemoveProperty 方法

定義

多載

RemoveProperty(IReadOnlyProperty)

從這個實體類型移除屬性。

RemoveProperty(String)

從這個實體類型移除屬性。

RemoveProperty(IConventionProperty)

從這個實體類型移除屬性。

RemoveProperty(IReadOnlyProperty)

從這個實體類型移除屬性。

public Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? RemoveProperty (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member RemoveProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
Public Function RemoveProperty (property As IReadOnlyProperty) As IConventionProperty

參數

property
IReadOnlyProperty

要移除的屬性。

傳回

已移除的屬性,如果找不到屬性,則 null 為 。

適用於

RemoveProperty(String)

從這個實體類型移除屬性。

public Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? RemoveProperty (string name);
abstract member RemoveProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
Public Function RemoveProperty (name As String) As IConventionProperty

參數

name
String

要移除之屬性的名稱。

傳回

已移除的屬性。

適用於

RemoveProperty(IConventionProperty)

從這個實體類型移除屬性。

public void RemoveProperty (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property);
public Microsoft.EntityFrameworkCore.Metadata.IConventionProperty RemoveProperty (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property);
abstract member RemoveProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> unit
abstract member RemoveProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
Public Sub RemoveProperty (property As IConventionProperty)
Public Function RemoveProperty (property As IConventionProperty) As IConventionProperty

參數

property
IConventionProperty

要移除的屬性。

傳回

已移除的屬性。

適用於