Dil

EnumToStringConverter<TEnum> Sınıf

Tanım

Sabit listesi değerlerini dize gösterimlerine ve dizelerinden dönüştürür.

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

Tür Parametreleri

TEnum
Devralma
Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<TEnum,String,TEnum>
EnumToStringConverter<TEnum>
Devralma
EnumToStringConverter<TEnum>
Özellikler

Açıklamalar

Daha fazla bilgi ve örnek için bkz. EF Core değer dönüştürücüleri .

Oluşturucular

Veri Akışı Adı Description
EnumToStringConverter<TEnum>()

Bu dönüştürücüye ait yeni bir örnek oluşturur. Bu dönüştürücü sırayı korumaz.

EnumToStringConverter<TEnum>(ConverterMappingHints)

Bu dönüştürücüye ait yeni bir örnek oluşturur. Bu dönüştürücü sırayı korumaz.

Özellikler

Veri Akışı Adı Description
DefaultInfo

Bu dönüştürücü varsayılan kullanımı için A ValueConverterInfo .

Instance

Bu dönüştürücüye ait önbelleğe alınmış, varsayılan bir örnek.

Şunlara uygulanır