TemporaryGuidValueGenerator TemporaryGuidValueGenerator Class

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.

Syntax

Declaration

public class TemporaryGuidValueGenerator : GuidValueGeneratorPublic Class TemporaryGuidValueGenerator
    Inherits GuidValueGenerator

Inheritance Hierarchy

Inherited Members

Next(EntityEntry),
Next(EntityEntry),
NextAsync(EntityEntry, CancellationToken),
NextAsync(EntityEntry, CancellationToken),
NextValue(EntityEntry),
NextValue(EntityEntry),
NextValueAsync(EntityEntry, CancellationToken),
NextValueAsync(EntityEntry, CancellationToken),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Properties summary

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

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

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

    Property Value

    • System.Boolean
      System.Boolean

Details

Assembly

Microsoft.EntityFrameworkCore.dll