EnumToNumberConverter<TEnum,TNumber> Constructors
Definition
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.
Overloads
EnumToNumberConverter<TEnum,TNumber>() |
Creates a new instance of this converter. This converter preserves order. |
EnumToNumberConverter<TEnum,TNumber>(ConverterMappingHints) |
Creates a new instance of this converter. This converter preserves order. |
EnumToNumberConverter<TEnum,TNumber>()
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
Creates a new instance of this converter. This converter preserves order.
public EnumToNumberConverter ();
Public Sub New ()
Remarks
See EF Core value converters for more information and examples.
Applies to
EnumToNumberConverter<TEnum,TNumber>(ConverterMappingHints)
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
- Source:
- EnumToNumberConverter.cs
Creates a new instance of this converter. This converter preserves order.
public EnumToNumberConverter (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints mappingHints = default);
public EnumToNumberConverter (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints? mappingHints);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.EnumToNumberConverter<'Enum, 'Number (requires 'Enum : struct and 'Number : struct)> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.EnumToNumberConverter<'Enum, 'Number (requires 'Enum : struct and 'Number : 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
Entity Framework