Table of Contents

Class BoolToZeroOneConverter<TProvider>

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

Converts bool values to and from 0 and 1.

public class BoolToZeroOneConverter<TProvider> : BoolToTwoValuesConverter<TProvider>

Type Parameters

TProvider
Inheritance
ValueConverter<bool, TProvider>
BoolToZeroOneConverter<TProvider>
Inherited Members

Remarks

See EF Core value converters for more information and examples.

Constructors

BoolToZeroOneConverter()

Creates a new instance of this converter. This converter preserves order.

public BoolToZeroOneConverter()

Remarks

See EF Core value converters for more information and examples.

BoolToZeroOneConverter(ConverterMappingHints?)

Creates a new instance of this converter. This converter preserves order.

public BoolToZeroOneConverter(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