Share via


StringToEnumConverter<TEnum> Constructors

Definition

Overloads

StringToEnumConverter<TEnum>()

Creates a new instance of this converter. This converter does not preserve order.

StringToEnumConverter<TEnum>(ConverterMappingHints)

Creates a new instance of this converter. This converter does not preserve order.

StringToEnumConverter<TEnum>()

Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs

Creates a new instance of this converter. This converter does not preserve order.

public StringToEnumConverter ();
Public Sub New ()

Remarks

See EF Core value converters for more information and examples.

Applies to

StringToEnumConverter<TEnum>(ConverterMappingHints)

Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs
Source:
StringToEnumConverter.cs

Creates a new instance of this converter. This converter does not preserve order.

public StringToEnumConverter (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints mappingHints = default);
public StringToEnumConverter (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints? mappingHints);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.StringToEnumConverter<'Enum (requires 'Enum : struct)> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.StringToEnumConverter<'Enum (requires 'Enum : struct)>
Public Sub New (Optional mappingHints As ConverterMappingHints = Nothing)
Public Sub New (mappingHints As ConverterMappingHints)

Parameters

mappingHints
ConverterMappingHints

Hints that can be used by the ITypeMappingSource to create data types with appropriate facets for the converted data.

Remarks

See EF Core value converters for more information and examples.

Applies to