Namespace Microsoft.EntityFrameworkCore.Storage.ValueConversion
Classes
- BoolToStringConverter
Converts bool values to and from two string values.
- BoolToTwoValuesConverter<TProvider>
Converts bool values to and from two different values.
- BoolToZeroOneConverter<TProvider>
Converts bool values to and from
0
and1
.
- BytesToStringConverter
Converts arrays of bytes to and from strings.
- CastingConverter<TModel, TProvider>
Converts
TModel
to and fromTProvider
using simple casts from one type to the other.
- CollectionToJsonStringConverter<TElement>
A value converter that converts a .NET primitive collection into a JSON string.
- ConverterMappingHints
Specifies hints used by the type mapper when mapping using a ValueConverter.
- DateOnlyToStringConverter
Converts DateOnly to and from strings.
- DateTimeOffsetToBinaryConverter
Converts DateTime to and from binary representation in a long. The DateTime is truncated beyond 0.1 millisecond precision.
- DateTimeOffsetToBytesConverter
Converts DateTime to and from arrays of bytes.
- DateTimeOffsetToStringConverter
Converts DateTimeOffset to and from strings.
- DateTimeToBinaryConverter
Converts DateTime using ToBinary(). This will preserve the DateTimeKind.
- DateTimeToStringConverter
Converts DateTime to and from strings.
- EnumToNumberConverter<TEnum, TNumber>
Converts enum values to and from their underlying numeric representation.
- EnumToStringConverter<TEnum>
Converts enum values to and from their string representation.
- GuidToStringConverter
Converts a Guid to and from a string using the standard "8-4-4-4-12" format./>.
- NumberToBytesConverter<TNumber>
Converts numeric values to and from arrays of bytes.
- NumberToStringConverter<TNumber>
Converts numeric values to and from their string representation.
- PhysicalAddressToBytesConverter
Converts a PhysicalAddress to and from a byte.
- PhysicalAddressToStringConverter
Converts a PhysicalAddress to and from a string.
- StringToBoolConverter
Converts strings to and from bool values.
- StringToBytesConverter
Converts strings to and from arrays of bytes.
- StringToCharConverter
Converts strings to and from char values.
- StringToDateOnlyConverter
Converts strings to and from DateOnly values.
- StringToDateTimeConverter
Converts strings to and from DateTime values.
- StringToDateTimeOffsetConverter
Converts strings to and from DateTimeOffset values.
- StringToEnumConverter<TEnum>
Converts strings to and from enum values.
- StringToGuidConverter
Converts strings to and from a Guid using the standard "8-4-4-4-12" format./>.
- StringToNumberConverter<TNumber>
Converts strings to and from numeric values.
- StringToTimeOnlyConverter
Converts strings to and from TimeOnly values.
- StringToTimeSpanConverter
Converts strings to and from TimeSpan values.
- StringToUriConverter
Converts strings to and from System.Uri values.
- TimeOnlyToStringConverter
Converts TimeOnly to and from strings.
- TimeSpanToStringConverter
Converts TimeSpan to and from strings.
- UriToStringConverter
Converts a System.Uri to and from a string.
- ValueConverter
Defines conversions from an object of one type in a model to an object of the same or different type in the store.
- ValueConverterSelector
A registry of ValueConverter instances that can be used to find the preferred converter to use to convert to and from a given model type to a type that the database provider supports.
- ValueConverterSelectorDependencies
Service dependencies parameter class for ValueConverterSelector
This type is typically used by database providers (and other extensions). It is generally not used in application code.
- ValueConverter<TModel, TProvider>
Defines conversions from an object of one type in a model to an object of the same or different type in the store.
Structs
- ValueConverterInfo
Contains information on an available ValueConverter including a factory to create an instance.
Interfaces
- IValueConverterSelector
A registry of ValueConverterInfo that can be used to find the preferred converter to use to convert to and from a given model type to a type that the database provider supports.