IValueGeneratorSelector IValueGeneratorSelector Interface

Definition

Selects value generators to be used to generate values for properties of entities.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IValueGeneratorSelector
Public Interface IValueGeneratorSelector

Methods

Select(IProperty, IEntityType) Select(IProperty, IEntityType)

Selects the appropriate value generator for a given property.

ValueGenerator Select(IProperty property, IEntityType entityType)
Function Select(property As IProperty, entityType As IEntityType) As ValueGenerator
Parameters
property
IProperty IProperty

The property to get the value generator for.

entityType
IEntityType IEntityType

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

Returns

The value generator to be used.