StringToBytesConverter(Encoding, 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.
public StringToBytesConverter (System.Text.Encoding encoding, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints mappingHints = default);
public StringToBytesConverter (System.Text.Encoding encoding, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints? mappingHints = default);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.StringToBytesConverter : System.Text.Encoding * Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.StringToBytesConverter
Public Sub New (encoding As Encoding, Optional mappingHints As ConverterMappingHints = Nothing)
Parameters
- encoding
- Encoding
The string encoding to use.
- 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