Share via


StringToEnumConverter<TEnum> Class

Definition

Converts strings to and from enum values.

public class StringToEnumConverter<TEnum> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<string,TEnum,TEnum> where TEnum : struct
type StringToEnumConverter<'Enum (requires 'Enum : struct)> = class
    inherit StringEnumConverter<string, 'Enum, 'Enum (requires 'Enum : struct and 'Enum : struct)>
Public Class StringToEnumConverter(Of TEnum)
Inherits StringEnumConverter(Of String, TEnum, TEnum)

Type Parameters

TEnum
Inheritance
Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<String,TEnum,TEnum>
StringToEnumConverter<TEnum>

Remarks

See EF Core value converters for more information and examples.

Constructors

StringToEnumConverter<TEnum>()

Creates a new instance of this converter. This converter does not preserve order.

StringToEnumConverter<TEnum>(ConverterMappingHints)

Creates a new instance of this converter. This converter does not preserve order.

Properties

DefaultInfo

A ValueConverterInfo for the default use of this converter.

Applies to