Table of Contents

Class NumberToStringConverter<TNumber>

Namespace
Microsoft.EntityFrameworkCore.Storage.ValueConversion
Assembly
Microsoft.EntityFrameworkCore.dll

Converts numeric values to and from their string representation.

public class NumberToStringConverter<TNumber> : StringNumberConverter<TNumber, string, TNumber>

Type Parameters

TNumber
Inheritance
StringNumberConverter<TNumber, string, TNumber>
NumberToStringConverter<TNumber>
Inherited Members

Remarks

See EF Core value converters for more information and examples.

Constructors

NumberToStringConverter()

Creates a new instance of this converter.

public NumberToStringConverter()

Remarks

See EF Core value converters for more information and examples.

NumberToStringConverter(ConverterMappingHints?)

Creates a new instance of this converter.

public NumberToStringConverter(ConverterMappingHints? mappingHints)

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.

Properties

DefaultInfo

A ValueConverterInfo for the default use of this converter.

public static ValueConverterInfo DefaultInfo { get; }

Property Value

ValueConverterInfo