TemporaryGuidValueGenerator TemporaryGuidValueGenerator Class

Definition

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.

public class TemporaryGuidValueGenerator : GuidValueGenerator
Public Class TemporaryGuidValueGenerator
    Inherits GuidValueGenerator
Inheritance
System.ObjectSystem.Object
ValueGenerator<System.Guid>ValueGenerator(Of System.Guid)
TemporaryGuidValueGeneratorTemporaryGuidValueGenerator

Properties

GeneratesTemporaryValues GeneratesTemporaryValues

Gets a value indicating whether the values generated are temporary or permanent. This implementation always returns true, meaning the generated values will be replaced by database generated values when the entity is saved

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.

(Inherited from GuidValueGenerator)
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