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

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

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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)

NextAsync(EntityEntry, CancellationToken) NextAsync(EntityEntry, CancellationToken)

Inherited from Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>

NextValue(EntityEntry) NextValue(EntityEntry)

Inherited from Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>

NextValueAsync(EntityEntry, CancellationToken) NextValueAsync(EntityEntry, CancellationToken)

Inherited from Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator<System.Guid>

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object