IConventionTypeBase.RemoveProperty 方法

定義

多載

RemoveProperty(IReadOnlyProperty)

從這個類型移除 屬性。

RemoveProperty(String)

從這個類型移除 屬性。

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

要移除之屬性的名稱。

傳回

已移除的屬性。

適用於