Прочетете на английски

Споделяне чрез


PropertyExtensions.GetValueConverter(IProperty) Method

Definition

Caution

Use IReadOnlyProperty.GetValueConverter

Gets the custom ValueConverter set for this property.

C#
public static Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter GetValueConverter (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
C#
[System.Obsolete("Use IReadOnlyProperty.GetValueConverter")]
public static Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter? GetValueConverter (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Parameters

property
IProperty

The property.

Returns

The converter, or null if none has been set.

Attributes

Applies to

Продукт Версии (остаряло)
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0 (6.0)