MutableEntityTypeExtensions.RemoveProperty(IMutableEntityType, String) Method

Definition

Removes a property from this entity type.

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

Parameters

entityType
IMutableEntityType

The entity type.

name
String

The name of the property to remove.

Returns

The property that was removed.

Applies to