Microsoft.EntityFrameworkCore.Storage.ValueConversion Namespace
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.
Classes
BoolToStringConverter |
Converts Boolean values to and from two string values. |
BoolToTwoValuesConverter<TProvider> |
Converts Boolean values to and from two different values. |
BoolToZeroOneConverter<TProvider> |
Converts Boolean values to and from |
BytesToStringConverter |
Converts arrays of bytes to and from strings. |
CastingConverter<TModel,TProvider> |
Converts |
CharToStringConverter | |
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. |
DateTimeToTicksConverter | |
EnumToNumberConverter<TEnum,TNumber> |
Converts enum values to and from their underlying numeric representation. |
EnumToStringConverter<TEnum> |
Converts enum values to and from their string representation. |
GuidToBytesConverter | |
GuidToStringConverter |
Converts a Guid to and from a String using the standard "8-4-4-4-12" format./>. |
IPAddressToBytesConverter | |
IPAddressToStringConverter | |
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. |
RelationalConverterMappingHints |
Specifies hints used by the type mapper when mapping using a ValueConverter. |
StringToBoolConverter |
Converts strings to and from Boolean 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 Uri values. |
TimeOnlyToStringConverter |
Converts TimeOnly to and from strings. |
TimeOnlyToTicksConverter | |
TimeSpanToStringConverter |
Converts TimeSpan to and from strings. |
TimeSpanToTicksConverter | |
UriToStringConverter | |
ValueConverter |
Defines conversions from an object of one type in a model to an object of the same or different type in the store. |
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. |
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. |
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. |
Entity Framework