Table of Contents

Class ValueGeneratorFactory

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

Base class for factories that create value generators.

public abstract class ValueGeneratorFactory
Inheritance
ValueGeneratorFactory
Derived
Inherited Members

Remarks

See EF Core value generation for more information and examples.

Constructors

ValueGeneratorFactory()

protected ValueGeneratorFactory()

Methods

Create(IProperty, ITypeBase)

Creates a new value generator.

public abstract ValueGenerator Create(IProperty property, ITypeBase typeBase)

Parameters

property IProperty

The property to create the value generator for.

typeBase ITypeBase

The type for which the value generator will be used.

Returns

ValueGenerator

The newly created value generator.

Remarks

See EF Core value generation for more information and examples.