BoolToStringConverter(String, String, ConverterMappingHints) Constructor

Definition

Creates a new instance of this converter. A case-insensitive first character test is used when converting from the store.

public BoolToStringConverter (string falseValue, string trueValue, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints mappingHints = default);
public BoolToStringConverter (string falseValue, string trueValue, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints? mappingHints = default);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.BoolToStringConverter : string * string * Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.BoolToStringConverter
Public Sub New (falseValue As String, trueValue As String, Optional mappingHints As ConverterMappingHints = Nothing)

Parameters

falseValue
String

The string to use for false.

trueValue
String

The string to use for true.

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.

Applies to