ValueGeneratorSelector ValueGeneratorSelector Class

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.

Syntax

Declaration

public class ValueGeneratorSelector : IValueGeneratorSelectorPublic Class ValueGeneratorSelector
    Implements IValueGeneratorSelector

Inheritance Hierarchy

  • System.Object
    System.Object
  • ValueGeneratorSelector
    ValueGeneratorSelector

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Initializes a new instance of the ValueGeneratorSelector class.

Properties summary

The cache being used to store value generator instances.

Methods summary

Creates a new value generator for the given property.

Selects the appropriate value generator for a given property.

Constructors

  • ValueGeneratorSelector(IValueGeneratorCache)
    ValueGeneratorSelector(IValueGeneratorCache)

    Initializes a new instance of the ValueGeneratorSelector class.

    public ValueGeneratorSelector(IValueGeneratorCache cache)Public Sub New(cache As IValueGeneratorCache)

    Parameters

Properties

  • Cache
    Cache

    The cache being used to store value generator instances.

    public virtual IValueGeneratorCache Cache { get; }Public Overridable ReadOnly Property Cache As IValueGeneratorCache

    Property Value

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

    Parameters

    • property

      The property to get the value generator for.

    • entityType

      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

  • 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

    Parameters

    • property

      The property to get the value generator for.

    • entityType

      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

Details

Assembly

Microsoft.EntityFrameworkCore.dll