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

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.

(Inherited from GuidValueGenerator)

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