IValueGeneratorSelector.Select Method

Definition

Overloads

Select(IProperty, IEntityType)

Selects the appropriate value generator for a given property.

Select(IProperty, ITypeBase)

Selects the appropriate value generator for a given property.

Select(IProperty, IEntityType)

Selects the appropriate value generator for a given property.

public Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Select (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member Select : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Function Select (property As IProperty, entityType As IEntityType) As ValueGenerator

Parameters

property
IProperty

The property to get the value generator for.

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

Applies to

Select(IProperty, ITypeBase)

Selects the appropriate value generator for a given property.

public Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Select (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
abstract member Select : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Function Select (property As IProperty, typeBase As ITypeBase) As ValueGenerator

Parameters

property
IProperty

The property to get the value generator for.

typeBase
ITypeBase

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

Returns

The value generator to be used.

Applies to