RelationalEntityTypeAnnotations.SetDiscriminatorProperty Method

Definition

Overloads

SetDiscriminatorProperty(IProperty)

Attempts to set the DiscriminatorProperty using the semantics of the RelationalAnnotations in use.

SetDiscriminatorProperty(IProperty, Type)

Attempts to set the DiscriminatorProperty using the semantics of the RelationalAnnotations in use.

SetDiscriminatorProperty(IProperty)

Attempts to set the DiscriminatorProperty using the semantics of the RelationalAnnotations in use.

protected virtual bool SetDiscriminatorProperty (Microsoft.EntityFrameworkCore.Metadata.IProperty value);
abstract member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
override this.SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
Protected Overridable Function SetDiscriminatorProperty (value As IProperty) As Boolean

Parameters

value
IProperty

The value to set.

Returns

True if the annotation was set; false otherwise.

Applies to

SetDiscriminatorProperty(IProperty, Type)

Attempts to set the DiscriminatorProperty using the semantics of the RelationalAnnotations in use.

protected virtual bool SetDiscriminatorProperty (Microsoft.EntityFrameworkCore.Metadata.IProperty value, Type oldDiscriminatorType);
abstract member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty * Type -> bool
override this.SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty * Type -> bool
Protected Overridable Function SetDiscriminatorProperty (value As IProperty, oldDiscriminatorType As Type) As Boolean

Parameters

value
IProperty

The value to set.

oldDiscriminatorType
Type

The type that was previously being used for discriminator values.

Returns

True if the annotation was set; false otherwise.

Applies to