ConventionEntityTypeExtensions.RemoveProperty Method

Definition

Removes a property from this entity type.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty RemoveProperty (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
static member RemoveProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
<Extension()>
Public Function RemoveProperty (entityType As IConventionEntityType, name As String) As IConventionProperty

Parameters

entityType
IConventionEntityType

The entity type.

name
String

The name of the property to remove.

Returns

The property that was removed.

Applies to