ValueGeneratorSelector Class (Microsoft.EntityFrameworkCore.ValueGeneration)



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.Object

ValueGeneratorSelectorValueGeneratorSelector

Implements

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




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

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 newly created value generator.


Equals(Object)
Equals(Object)


Inherited from System.Object








Equals(Object, Object)
Equals(Object, Object)


Inherited from System.Object








GetHashCode()
GetHashCode()


Inherited from System.Object








GetType()
GetType()


Inherited from System.Object








MemberwiseClone()
MemberwiseClone()


Inherited from System.Object








ReferenceEquals(Object, Object)
ReferenceEquals(Object, Object)


Inherited from System.Object








ToString()
ToString()


Inherited from System.Object











source_link
https://www.asp.net