src/Shared/EntityFramework/ModelConfiguration/Configuration/Mapping/ValueConditionConfiguration.cs
/// <summary>
/// Configures the discriminator value used to identify the entity type being
/// configured from other types in the inheritance hierarchy.
/// </summary>
/// <typeparam name="T"> Type of the discriminator value. </typeparam>
/// <param name="value"> The value to be used to identify the entity type. </param>
/// <returns> A configuration object to configure the column used to store discriminator values. </returns>
Configures the discriminator value used to identify the entity type being
configured from other types in the inheritance hierarchy.
Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy .
public PrimitiveColumnConfiguration HasValue<T>(T? value)
            where T : struct
        {
            ValidateValueType(value);
            Value = value;
            _entityMappingConfiguration.AddValueCondition(this);
            return
                new PrimitiveColumnConfiguration(
                    GetOrCreateConfiguration<Properties.Primitive.PrimitivePropertyConfiguration>());
        }
public PrimitiveColumnConfiguration HasValue < T > ( T ? value ) where T : struct { ValidateValueType ( value ) ; Value = value ; _entityMappingConfiguration . AddValueCondition ( this ) ; return new PrimitiveColumnConfiguration ( GetOrCreateConfiguration < Properties . Primitive . PrimitivePropertyConfiguration > ( ) ) ; }
Configures the discriminator value used to identify the entity type being
configured from other types in the inheritance hierarchy.
Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy .
A configuration object to configure the column used to store discriminator values.
A configuration object to configure the column used to store discriminator values .
value
T?
The value to be used to identify the entity type.
The value to be used to identify the entity type .
typeparam
Type of the discriminator value.
Type of the discriminator value .