Share via


DateTimeOffsetToStringConverter Class

Definition

Converts DateTimeOffset to and from strings.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class DateTimeOffsetToStringConverter : Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringDateTimeOffsetConverter<DateTimeOffset,string>
public class DateTimeOffsetToStringConverter : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter<DateTimeOffset,string>
public class DateTimeOffsetToStringConverter : Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringDateTimeOffsetConverter<DateTimeOffset,string>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type DateTimeOffsetToStringConverter = class
    inherit StringDateTimeOffsetConverter<DateTimeOffset, string>
type DateTimeOffsetToStringConverter = class
    inherit ValueConverter<DateTimeOffset, string>
type DateTimeOffsetToStringConverter = class
    inherit StringDateTimeOffsetConverter<DateTimeOffset, string>
Public Class DateTimeOffsetToStringConverter
Inherits StringDateTimeOffsetConverter(Of DateTimeOffset, String)
Public Class DateTimeOffsetToStringConverter
Inherits ValueConverter(Of DateTimeOffset, String)
Inheritance
Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal.StringDateTimeOffsetConverter<DateTimeOffset,String>
DateTimeOffsetToStringConverter
Inheritance
DateTimeOffsetToStringConverter
Attributes

Remarks

See EF Core value converters for more information and examples.

Constructors

Name Description
DateTimeOffsetToStringConverter()

Creates a new instance of this converter.

DateTimeOffsetToStringConverter(ConverterMappingHints)

Creates a new instance of this converter.

Properties

Name Description
ConvertFromProvider

Gets the function to convert objects when reading data from the store, setup to handle nulls, boxing, and non-exact matches of simple types.

(Inherited from ValueConverter<TModel,TProvider>)
ConvertFromProviderExpression

Gets the expression to convert objects when reading data from the store, exactly as supplied and may not handle nulls, boxing, and non-exact matches of simple types.

(Inherited from ValueConverter<TModel,TProvider>)
ConvertToProvider

Gets the function to convert objects when writing data to the store, setup to handle nulls, boxing, and non-exact matches of simple types.

(Inherited from ValueConverter<TModel,TProvider>)
ConvertToProviderExpression

Gets the expression to convert objects when writing data to the store, exactly as supplied and may not handle nulls, boxing, and non-exact matches of simple types.

(Inherited from ValueConverter<TModel,TProvider>)
DefaultInfo

A ValueConverterInfo for the default use of this converter.

MappingHints

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

(Inherited from ValueConverter)
ModelClrType

The CLR type used in the EF model.

(Inherited from ValueConverter<TModel,TProvider>)
ProviderClrType

The CLR type used when reading and writing from the store.

(Inherited from ValueConverter<TModel,TProvider>)

Methods

Name Description
ComposeWith(ValueConverter)

Composes another ValueConverter instance with this one such that the result of the first conversion is used as the input to the second conversion.

(Inherited from ValueConverter)

Applies to