Microsoft.EntityFrameworkCore.ValueGeneration Namespace

Classes

BinaryValueGenerator

Generates an array bytes from NewGuid(). The generated values are non-temporary, meaning they will be saved to the database.

DiscriminatorValueGeneratorFactory

A factory that creates value generators for the discriminator property that always outputs the discriminator value for the given entity type.

GuidValueGenerator

Generates Guid values using NewGuid(). The generated values are non-temporary, meaning they will be saved to the database.

HiLoValueGenerator<TValue>

Acts as a ValueGenerator by requesting a block of values from the underlying database and returning them one by one. Will ask the underlying database for another block when the current block is exhausted.

HiLoValueGeneratorState

The thread safe state used by HiLoValueGenerator<TValue>.

RelationalValueGeneratorSelector

Selects value generators to be used to generate values for properties of entities.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

SequentialGuidValueGenerator

Generates sequential Guid values optimized for use in Microsoft SQL server clustered keys or indexes, yielding better performance than random values. This is the default generator for SQL Server Guid columns which are set to be generated on add.

StringValueGenerator

Generates String values using a string representation of NewGuid(). The generated values are non-temporary, meaning they will be saved to the database.

TemporaryGuidValueGenerator

Generates Guid values using NewGuid(). The generated values are temporary, meaning they will be replaced by database generated values when the entity is saved.

TemporaryNumberValueGeneratorFactory

Factory for creation of temporary integer value generators appropriate for the numeric type of the property.

ValueGenerator

Generates values for properties when an entity is added to a context.

ValueGenerator<TValue>

Generates values for properties when an entity is added to a context.

ValueGeneratorCache

Keeps a cache of value generators for properties.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

ValueGeneratorCacheDependencies

Service dependencies parameter class for ValueGeneratorCache

This type is typically used by database providers (and other extensions). It is generally not used in application code.

ValueGeneratorFactory

Base class for factories that create value generators.

ValueGeneratorSelector

Selects value generators to be used to generate values for properties of entities.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

ValueGeneratorSelectorDependencies

Service dependencies parameter class for ValueGeneratorSelector

This type is typically used by database providers (and other extensions). It is generally not used in application code.

Interfaces

IValueGeneratorCache

Keeps a cache of value generators for properties.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

IValueGeneratorSelector

Selects value generators to be used to generate values for properties of entities.

This type is typically used by database providers (and other extensions). It is generally not used in application code.