EnumToStringConverter<TEnum> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts enum values to and from their string representation.
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
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 ValueConverter(Of TEnum, String)
Public Class EnumToStringConverter(Of TEnum)
Inherits StringEnumConverter(Of TEnum, String, TEnum)
- TEnum
- Inheritance
-
ValueConverter<TEnum,String>EnumToStringConverter<TEnum>
- Inheritance
-
Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringEnumConverter<TEnum,String,TEnum>EnumToStringConverter<TEnum>
See EF Core value converters for more information and examples.
Enum |
Creates a new instance of this converter. This converter does not preserve order. |
Enum |
Creates a new instance of this converter. This converter does not preserve order. |
Default |
A ValueConverterInfo for the default use of this converter. |
منتج | الإصدارات |
---|---|
Entity Framework Core | 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
ملاحظات Entity Framework
Entity Framework هو مشروع مصدر مفتوح. حدد رابطًا لتقديم الملاحظات: