IConventionTypeBase.RemoveProperty Method

Definition

Overloads

RemoveProperty(IReadOnlyProperty)

Removes a property from this type.

RemoveProperty(String)

Removes a property from this type.

RemoveProperty(IReadOnlyProperty)

Removes a property from this 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 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