SequentialGuidValueGenerator SequentialGuidValueGenerator Class

Definition

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.

public class SequentialGuidValueGenerator : ValueGenerator<Guid>
Public Class SequentialGuidValueGenerator
    Inherits ValueGenerator(Of Guid)
Inheritance
System.ObjectSystem.Object
ValueGenerator<System.Guid>ValueGenerator(Of System.Guid)
SequentialGuidValueGeneratorSequentialGuidValueGenerator

Properties

GeneratesTemporaryValues GeneratesTemporaryValues

Gets a value indicating whether the values generated are temporary or permanent. This implementation always returns false, meaning the generated values will be saved to the database.

Methods

System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
Next(EntityEntry) Next(EntityEntry)

Gets a value to be assigned to a property.

Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>.NextAsync(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>.NextAsync(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry, System.Threading.CancellationToken) Inherited from Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>
Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>.NextValue(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry) Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>.NextValue(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry) Inherited from Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>
Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>.NextValueAsync(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>.NextValueAsync(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry, System.Threading.CancellationToken) Inherited from Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
System.Object.ToString() System.Object.ToString() Inherited from System.Object