Share via


DiscriminatorBuilder<TDiscriminator>.HasValue Method

Definition

Overloads

HasValue(TDiscriminator)

Configures the default discriminator value to use.

HasValue(String, TDiscriminator)

Configures the discriminator value to use for entities of the given type.

HasValue(Type, TDiscriminator)

Configures the discriminator value to use for entities of the given type.

HasValue<TEntity>(TDiscriminator)

Configures the discriminator value to use for entities of the given generic type.

HasValue(TDiscriminator)

Configures the default discriminator value to use.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<TDiscriminator> HasValue (TDiscriminator value);
abstract member HasValue : 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
override this.HasValue : 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
Public Overridable Function HasValue (value As TDiscriminator) As DiscriminatorBuilder(Of TDiscriminator)

Parameters

value
TDiscriminator

The discriminator value.

Returns

The same builder so that multiple calls can be chained.

Applies to

HasValue(String, TDiscriminator)

Configures the discriminator value to use for entities of the given type.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<TDiscriminator> HasValue (string entityTypeName, TDiscriminator value);
abstract member HasValue : string * 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
override this.HasValue : string * 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
Public Overridable Function HasValue (entityTypeName As String, value As TDiscriminator) As DiscriminatorBuilder(Of TDiscriminator)

Parameters

entityTypeName
String

The name of the entity type for which a discriminator value is being set.

value
TDiscriminator

The discriminator value.

Returns

The same builder so that multiple calls can be chained.

Applies to

HasValue(Type, TDiscriminator)

Configures the discriminator value to use for entities of the given type.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<TDiscriminator> HasValue (Type entityType, TDiscriminator value);
abstract member HasValue : Type * 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
override this.HasValue : Type * 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
Public Overridable Function HasValue (entityType As Type, value As TDiscriminator) As DiscriminatorBuilder(Of TDiscriminator)

Parameters

entityType
Type

The entity type for which a discriminator value is being set.

value
TDiscriminator

The discriminator value.

Returns

The same builder so that multiple calls can be chained.

Applies to

HasValue<TEntity>(TDiscriminator)

Configures the discriminator value to use for entities of the given generic type.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<TDiscriminator> HasValue<TEntity> (TDiscriminator value);
abstract member HasValue : 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
override this.HasValue : 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
Public Overridable Function HasValue(Of TEntity) (value As TDiscriminator) As DiscriminatorBuilder(Of TDiscriminator)

Type Parameters

TEntity

The entity type for which a discriminator value is being set.

Parameters

value
TDiscriminator

The discriminator value.

Returns

The same builder so that multiple calls can be chained.

Applies to