BoolToStringConverter(String, String, ConverterMappingHints) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework