Microsoft.EntityFrameworkCore.ValueGeneration Microsoft.EntityFrameworkCore.ValueGeneration Namespace

Classes

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

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.

The thread safe state used by HiLoValueGenerator<TValue>.

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.

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.

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

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

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.

Base class for factories that create value generators.

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

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.

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.