Język

EnumToStringConverter<TEnum> Klasa

Definicja

Konwertuje wartości wyliczeniowe na i z ich reprezentacji ciągu.

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

Parametry typu

TEnum
Dziedziczenie
Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<TEnum,String,TEnum>
EnumToStringConverter<TEnum>
Dziedziczenie
EnumToStringConverter<TEnum>
Atrybuty

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Konwertery wartości platformy EF Core .

Konstruktory

Nazwisko Opis
EnumToStringConverter<TEnum>()

Tworzy nowe wystąpienie tego konwertera. Ten konwerter nie zachowuje kolejności.

EnumToStringConverter<TEnum>(ConverterMappingHints)

Tworzy nowe wystąpienie tego konwertera. Ten konwerter nie zachowuje kolejności.

Właściwości

Nazwisko Opis
DefaultInfo

A ValueConverterInfo dla domyślnego użycia tego konwertera.

Instance

Buforowane, domyślne wystąpienie tego konwertera.

Dotyczy