DiscriminatorBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a simple API surface for setting discriminator values.
public class DiscriminatorBuilder
public class DiscriminatorBuilder : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDiscriminatorBuilder
type DiscriminatorBuilder = class
type DiscriminatorBuilder = class
interface IConventionDiscriminatorBuilder
Public Class DiscriminatorBuilder
Public Class DiscriminatorBuilder
Implements IConventionDiscriminatorBuilder
- Inheritance
-
DiscriminatorBuilder
- Implements
Remarks
See Modeling entity types and relationships for more information and examples.
Constructors
DiscriminatorBuilder(IMutableEntityType) |
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. |
DiscriminatorBuilder(RelationalAnnotationsBuilder, Func<InternalEntityTypeBuilder,RelationalEntityTypeBuilderAnnotations>) |
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases. |
Properties
AnnotationsBuilder |
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases. |
EntityTypeBuilder |
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(Object) |
Configures the default discriminator value to use. |
HasValue(String, Object) |
Configures the discriminator value to use for entities of the given type. |
HasValue(Type, Object) |
Configures the discriminator value to use for entities of the given type. |
HasValue<TEntity>(Object) |
Configures the discriminator value to use for entities of the given generic type. |
IsComplete(Boolean) |
Configures if the discriminator mapping is complete. |
Explicit Interface Implementations
IConventionDiscriminatorBuilder.CanSetIsComplete(Boolean, Boolean) |
Returns a value indicating whether the discriminator mapping is complete can be set from this configuration source. |
IConventionDiscriminatorBuilder.CanSetValue(IConventionEntityType, Object, Boolean) |
Returns a value indicating whether the discriminator value can be set from this configuration source. |
IConventionDiscriminatorBuilder.CanSetValue(Object, Boolean) |
Returns a value indicating whether the discriminator value can be set from this configuration source. |
IConventionDiscriminatorBuilder.EntityType |
Gets the entity type on which the discriminator is being configured. |
IConventionDiscriminatorBuilder.HasValue(IConventionEntityType, Object, Boolean) |
Configures the discriminator value to use for entities of the given type. |
IConventionDiscriminatorBuilder.HasValue(Object, Boolean) |
Configures the discriminator value to use. |
IConventionDiscriminatorBuilder.IsComplete(Boolean, Boolean) |
Configures if the discriminator mapping is complete. |
Applies to
Entity Framework