Share via


StringToBytesConverter(Encoding, ConverterMappingHints) Constructor

Definition

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