Delen via


DiscriminatorBuilder<TDiscriminator> Class

Definition

Provides a simple API surface for setting discriminator values.

public class DiscriminatorBuilder<TDiscriminator>
type DiscriminatorBuilder<'Discriminator> = class
Public Class DiscriminatorBuilder(Of TDiscriminator)

Type Parameters

TDiscriminator

The type of the discriminator property.

Inheritance
DiscriminatorBuilder<TDiscriminator>

Remarks

See Modeling entity types and relationships for more information and examples.

Constructors

DiscriminatorBuilder<TDiscriminator>(DiscriminatorBuilder)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Methods

HasValue(String, TDiscriminator)

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

HasValue(TDiscriminator)

Configures the default discriminator value to use.

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.

IsComplete(Boolean)

Configures if the discriminator mapping is complete.

Applies to