Język

StringToEnumConverter<TEnum> Klasa

Definicja

Konwertuje ciągi na i z wartości wyliczenia.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1, 0, 0 })]
public class StringToEnumConverter<TEnum> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<string,TEnum,TEnum> where TEnum : struct
public class StringToEnumConverter<TEnum> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<string,TEnum,TEnum> where TEnum : struct
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1, 0, 0 })>]
type StringToEnumConverter<'Enum (requires 'Enum : struct)> = class
    inherit StringEnumConverter<string, 'Enum, 'Enum (requires 'Enum : struct and 'Enum : 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)

Parametry typu

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

Uwagi

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

Konstruktory

Nazwisko Opis
StringToEnumConverter<TEnum>()

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

StringToEnumConverter<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