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

要删除的属性。

返回

已删除的属性。

适用于