Table of Contents

Class TemporaryNumberValueGeneratorFactory

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

Factory for creation of temporary integer value generators appropriate for the numeric type of the property.

public class TemporaryNumberValueGeneratorFactory : ValueGeneratorFactory
Inheritance
TemporaryNumberValueGeneratorFactory
Inherited Members

Remarks

Types supported are: int, long, short, byte, char, ulong, uint, ushort, sbyte, decimal, float, double

Constructors

TemporaryNumberValueGeneratorFactory()

public TemporaryNumberValueGeneratorFactory()

Methods

Create(IProperty, ITypeBase)

Creates a new value generator.

public override ValueGenerator Create(IProperty property, ITypeBase entityType)

Parameters

property IProperty

The property to create the value generator for.

entityType ITypeBase

The type for which the value generator will be used.

Returns

ValueGenerator

The newly created value generator.