GuidValueGenerator GuidValueGenerator Class

Definition

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

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

Inherited Members

Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator{System.Guid}

NextAsync(EntityEntry, System.Threading.CancellationToken)NextAsync(EntityEntry, System.Threading.CancellationToken)
NextValueAsync(EntityEntry, System.Threading.CancellationToken)NextValueAsync(EntityEntry, System.Threading.CancellationToken)

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

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.

public override bool GeneratesTemporaryValues { get; }
Public Overrides ReadOnly Property GeneratesTemporaryValues As Boolean
Value
System.Boolean System.Boolean
Overrides

Methods

Next(EntityEntry) Next(EntityEntry)

Gets a value to be assigned to a property.

public override Guid Next(EntityEntry entry)
Public Overrides Function Next(entry As EntityEntry) As Guid
Parameters
Returns
System.Guid System.Guid

The value to be assigned to a property.

Overrides
Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>.Next(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry)Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>.Next(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry)