Dela via


RelationalValueGeneratorSelector.FindForType Method

Definition

Overloads

FindForType(IProperty, IEntityType, Type)

Creates a new value generator for the given property and type, where the property may have a ValueConverter.

FindForType(IProperty, ITypeBase, Type)

Creates a new value generator for the given property and type, where the property may have a ValueConverter.

FindForType(IProperty, IEntityType, Type)

Creates a new value generator for the given property and type, where the property may have a ValueConverter.

protected override Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator? FindForType (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Type clrType);
override this.FindForType : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Type -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Protected Overrides Function FindForType (property As IProperty, entityType As IEntityType, clrType As Type) 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

clrType
Type

The type, which may be the provider type after conversion, rather than the property type.

Returns

The newly created value generator.

Applies to

FindForType(IProperty, ITypeBase, Type)

Creates a new value generator for the given property and type, where the property may have a ValueConverter.

protected override Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator? FindForType (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase, Type clrType);
override this.FindForType : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * Type -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Protected Overrides Function FindForType (property As IProperty, typeBase As ITypeBase, clrType As Type) As ValueGenerator

Parameters

property
IProperty

The property to get the value generator for.

typeBase
ITypeBase

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

clrType
Type

The type, which may be the provider type after conversion, rather than the property type.

Returns

The newly created value generator.

Applies to