IMutableEntityType.RemoveProperty 方法

定義

多載

RemoveProperty(String)

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

RemoveProperty(IReadOnlyProperty)

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

RemoveProperty(IMutableProperty)

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

RemoveProperty(String)

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

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

參數

name
String

要移除之屬性的名稱。

傳回

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

適用於

RemoveProperty(IReadOnlyProperty)

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

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

參數

property
IReadOnlyProperty

要移除的屬性。

傳回

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

適用於

RemoveProperty(IMutableProperty)

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

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

參數

property
IMutableProperty

要移除的屬性。

傳回

已移除的屬性。

適用於