Прочетете на английски

Споделяне чрез


DiscriminatorLengthConvention Class

Definition

A convention that sets the maximum length for string discriminator properties.

C#
public class DiscriminatorLengthConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
Inheritance
DiscriminatorLengthConvention
Implements

Remarks

The maximum length is set to a value large enough to cover all discriminator values in the hierarchy.

See Model building conventions and TPH mapping of inheritance hierarchies for more information and examples.

Constructors

Properties

Dependencies

Dependencies for this service.

RelationalDependencies

Relational provider-specific dependencies for this service.

Methods

Applies to

Продукт Версии
Entity Framework Core 8.0, 9.0