Langue

EnumToStringConverter<TEnum> Classe

Définition

Convertit les valeurs d’énumération vers et à partir de leur représentation sous forme de chaîne.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 0, 1, 0 })]
public class EnumToStringConverter<TEnum> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<TEnum,string,TEnum> where TEnum : struct
public class EnumToStringConverter<TEnum> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter<TEnum,string> where TEnum : struct
public class EnumToStringConverter<TEnum> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<TEnum,string,TEnum> where TEnum : struct
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 0, 1, 0 })>]
type EnumToStringConverter<'Enum (requires 'Enum : struct)> = class
    inherit StringEnumConverter<'Enum, string, 'Enum (requires 'Enum : struct and 'Enum : struct)>
type EnumToStringConverter<'Enum (requires 'Enum : struct)> = class
    inherit ValueConverter<'Enum, string (requires 'Enum : struct)>
type EnumToStringConverter<'Enum (requires 'Enum : struct)> = class
    inherit StringEnumConverter<'Enum, string, 'Enum (requires 'Enum : struct and 'Enum : struct)>
Public Class EnumToStringConverter(Of TEnum)
Inherits StringEnumConverter(Of TEnum, String, TEnum)
Public Class EnumToStringConverter(Of TEnum)
Inherits ValueConverter(Of TEnum, String)

Paramètres de type

TEnum
Héritage
Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<TEnum,String,TEnum>
EnumToStringConverter<TEnum>
Héritage
EnumToStringConverter<TEnum>
Attributs

Remarques

Pour plus d’informations et d’exemples, consultez les convertisseurs de valeur EF Core .

Constructeurs

Nom Description
EnumToStringConverter<TEnum>()

Crée une instance de ce convertisseur. Ce convertisseur ne conserve pas l’ordre.

EnumToStringConverter<TEnum>(ConverterMappingHints)

Crée une instance de ce convertisseur. Ce convertisseur ne conserve pas l’ordre.

Propriétés

Nom Description
DefaultInfo

Pour ValueConverterInfo l’utilisation par défaut de ce convertisseur.

Instance

Instance mise en cache par défaut de ce convertisseur.

S’applique à