Microsoft.EntityFrameworkCore.ValueGeneration Microsoft.EntityFrameworkCore.ValueGeneration Namespace

Classes

GuidValueGenerator GuidValueGenerator

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

HiLoValueGenerator<TValue> HiLoValueGenerator(Of 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.

A block is represented by a low value fetched from the database, and then a block size that indicates how many sequential values can be used, starting from the low value, before a new low value must be fetched from the database.

HiLoValueGeneratorState HiLoValueGeneratorState

The thread safe state used by HiLoValueGenerator<TValue>.

RelationalValueGeneratorSelector RelationalValueGeneratorSelector
SequentialGuidValueGenerator SequentialGuidValueGenerator

Generates sequential System.Guid values using the same algorithm as NEWSEQUENTIALID() in Microsoft SQL Server. This is useful when entities are being saved to a database where sequential GUIDs will provide a performance benefit. The generated values are non-temporary, meaning they will be saved to the database.

TemporaryGuidValueGenerator TemporaryGuidValueGenerator

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

ValueGenerator ValueGenerator

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

ValueGenerator<TValue> ValueGenerator(Of TValue)

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

ValueGeneratorCache 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.

ValueGeneratorFactory ValueGeneratorFactory

Base class for factories that create value generators.

ValueGeneratorSelector 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.

Interfaces

IValueGeneratorCache 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 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.