Share via


IConventionTypeBaseBuilder.HasNoProperty(IConventionProperty, Boolean) Method

Definition

Removes a property from this type.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTypeBaseBuilder? HasNoProperty (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool fromDataAnnotation = false);
abstract member HasNoProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTypeBaseBuilder
Public Function HasNoProperty (property As IConventionProperty, Optional fromDataAnnotation As Boolean = false) As IConventionTypeBaseBuilder

Parameters

property
IConventionProperty

The property to be removed.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the property was removed, null otherwise.

Applies to