Class StringToBytesConverter
- Assembly
- Microsoft.EntityFrameworkCore.dll
Converts strings to and from arrays of bytes.
public class StringToBytesConverter : ValueConverter<string?, byte[]?>
- Inheritance
-
StringToBytesConverter
- Inherited Members
Remarks
See EF Core value converters for more information and examples.
Constructors
StringToBytesConverter(Encoding, ConverterMappingHints?)
Creates a new instance of this converter.
public StringToBytesConverter(Encoding encoding, ConverterMappingHints? mappingHints = null)
Parameters
encoding
EncodingThe string encoding to use.
mappingHints
ConverterMappingHintsHints 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; }