Class StringToTimeSpanConverter
- Assembly
- Microsoft.EntityFrameworkCore.dll
Converts strings to and from TimeSpan values.
public class StringToTimeSpanConverter : StringTimeSpanConverter<string, TimeSpan>
- Inheritance
-
StringToTimeSpanConverter
- Inherited Members
Remarks
See EF Core value converters for more information and examples.
Constructors
StringToTimeSpanConverter()
Creates a new instance of this converter.
public StringToTimeSpanConverter()
Remarks
See EF Core value converters for more information and examples.
StringToTimeSpanConverter(ConverterMappingHints?)
Creates a new instance of this converter.
public StringToTimeSpanConverter(ConverterMappingHints? mappingHints)
Parameters
mappingHints
ConverterMappingHintsHints 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.
Properties
DefaultInfo
A ValueConverterInfo for the default use of this converter.
public static ValueConverterInfo DefaultInfo { get; }