ValueGeneratorSelector
ValueGeneratorSelector
Class
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 class ValueGeneratorSelector : IValueGeneratorSelector
Public Class ValueGeneratorSelector
Implements IValueGeneratorSelector
- Inheritance
-
System.ObjectSystem.ObjectValueGeneratorSelectorValueGeneratorSelector
- Implements
Constructors
ValueGeneratorSelector(IValueGeneratorCache) ValueGeneratorSelector(IValueGeneratorCache)
Initializes a new instance of the ValueGeneratorSelector class.
public ValueGeneratorSelector(IValueGeneratorCache cache)
Public Sub New(cache As IValueGeneratorCache)
The cache to be used to store value generator instances.
Properties
Methods
Create(IProperty, IEntityType) Create(IProperty, IEntityType)
Creates a new value generator for the given property.
public virtual ValueGenerator Create(IProperty property, IEntityType entityType)
Public Overridable Function Create(property As IProperty, entityType As IEntityType) As ValueGenerator
- 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
The newly created value generator.
Select(IProperty, IEntityType) Select(IProperty, IEntityType)
Selects the appropriate value generator for a given property.
public virtual ValueGenerator Select(IProperty property, IEntityType entityType)
Public Overridable Function Select(property As IProperty, entityType As IEntityType) As ValueGenerator
- 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
The value generator to be used.