Sprache

EnumToStringConverter<TEnum> Klasse

Definition

Konvertiert Enumerationswerte in und aus deren Zeichenfolgendarstellung.

[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)

Typparameter

TEnum
Vererbung
Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<TEnum,String,TEnum>
EnumToStringConverter<TEnum>
Vererbung
EnumToStringConverter<TEnum>
Attribute

Hinweise

Weitere Informationen und Beispiele finden Sie unter EF Core-Wertkonverter .

Konstruktoren

Name Beschreibung
EnumToStringConverter<TEnum>()

Erstellt eine neue Instanz dieses Konverters. Dieser Konverter behält die Reihenfolge nicht bei.

EnumToStringConverter<TEnum>(ConverterMappingHints)

Erstellt eine neue Instanz dieses Konverters. Dieser Konverter behält die Reihenfolge nicht bei.

Eigenschaften

Name Beschreibung
DefaultInfo

A ValueConverterInfo für die Standardverwendung dieses Konverters.

Instance

Eine zwischengespeicherte Standardinstanz dieses Konverters.

Gilt für: