IConventionEntityType.SetDiscriminatorValue(Object, Boolean) Method

Definition

Sets the discriminator value for this entity type.

public virtual object? SetDiscriminatorValue (object? value, bool fromDataAnnotation = false);
abstract member SetDiscriminatorValue : obj * bool -> obj
override this.SetDiscriminatorValue : obj * bool -> obj
Public Overridable Function SetDiscriminatorValue (value As Object, Optional fromDataAnnotation As Boolean = false) As Object

Parameters

value
Object

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to