GuidValueGenerator GuidValueGenerator Class

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

Syntax

Declaration

public class GuidValueGenerator : ValueGenerator<Guid>Public Class GuidValueGenerator
    Inherits ValueGenerator(Of Guid)

Inheritance Hierarchy

Inherited Members

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 false, meaning the generated values will be saved to the database.

Methods summary

Gets a value to be assigned to a property.

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

    Property Value

    • System.Boolean
      System.Boolean

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.

Details

Assembly

Microsoft.EntityFrameworkCore.dll