Table of Contents

Class TemporaryGuidValueGenerator

Namespace
Microsoft.EntityFrameworkCore.ValueGeneration
Assembly
Microsoft.EntityFrameworkCore.dll

Generates Guid values using NewGuid(). The generated values are temporary, meaning they will be replaced by database generated values when the entity is saved.

public class TemporaryGuidValueGenerator : GuidValueGenerator
Inheritance
TemporaryGuidValueGenerator
Inherited Members

Remarks

See EF Core value generation for more information and examples.

Constructors

TemporaryGuidValueGenerator()

public TemporaryGuidValueGenerator()

Properties

GeneratesTemporaryValues

Gets a value to be assigned to a property.

public override bool GeneratesTemporaryValues { get; }

Property Value

bool

The value to be assigned to a property.