IConventionEntityType.RemoveServiceProperty 方法

定義

多載

RemoveServiceProperty(IReadOnlyServiceProperty)

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

RemoveServiceProperty(String)

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

RemoveServiceProperty(IReadOnlyServiceProperty)

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

public Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty? RemoveServiceProperty (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyServiceProperty property);
abstract member RemoveServiceProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyServiceProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty
Public Function RemoveServiceProperty (property As IReadOnlyServiceProperty) As IConventionServiceProperty

參數

property
IReadOnlyServiceProperty

要移除的屬性。

傳回

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

適用於

RemoveServiceProperty(String)

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

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

參數

name
String

要移除之屬性的名稱。

傳回

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

適用於