Table of Contents

Class KEFCoreValueGeneratorSelector

Namespace
MASES.EntityFrameworkCore.KNet.ValueGeneration.Internal
Assembly
MASES.EntityFrameworkCore.KNet.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class KEFCoreValueGeneratorSelector : ValueGeneratorSelector, IValueGeneratorSelector
Inheritance
KEFCoreValueGeneratorSelector
Implements
Inherited Members

Remarks

Default initializer

Constructors

KEFCoreValueGeneratorSelector(ValueGeneratorSelectorDependencies)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public KEFCoreValueGeneratorSelector(ValueGeneratorSelectorDependencies dependencies)

Parameters

dependencies ValueGeneratorSelectorDependencies

Remarks

Default initializer

Methods

TrySelect(IProperty, ITypeBase, out ValueGenerator?)

Selects the appropriate value generator for a given property, if available.

public override bool TrySelect(IProperty property, ITypeBase typeBase, out ValueGenerator? valueGenerator)

Parameters

property IProperty

The property to get the value generator for.

typeBase ITypeBase

The entity type that the value generator will be used for. When called on inherited properties on derived entity types, this entity type may be different from the declared entity type on property

valueGenerator ValueGenerator

The value generator, or null if none is available.

Returns

bool

true if a value generator was selected; false if none was available.