Share via


IConventionEntityType.RemoveProperty Method

Definition

Overloads

RemoveProperty(IReadOnlyProperty)

Removes a property from this entity type.

RemoveProperty(String)

Removes a property from this entity type.

RemoveProperty(IConventionProperty)

Removes a property from this entity type.

RemoveProperty(IReadOnlyProperty)

Removes a property from this entity type.

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

Parameters

property
IReadOnlyProperty

The property to remove.

Returns

The removed property, or null if the property was not found.

Applies to

RemoveProperty(String)

Removes a property from this entity type.

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

Parameters

name
String

The name of the property to remove.

Returns

The property that was removed.

Applies to

RemoveProperty(IConventionProperty)

Removes a property from this entity type.

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

Parameters

property
IConventionProperty

The property to remove.

Returns

The removed property.

Applies to