SqliteDbFunctionsExtensions.Unhex Method
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.
Overloads
Unhex(DbFunctions, String) |
Maps to the SQLite |
Unhex(DbFunctions, String, String) |
Maps to the SQLite |
Unhex(DbFunctions, String)
Maps to the SQLite unhex
function which returns a BLOB representing decoding of the hexadecimal string.
public static byte[] Unhex (this Microsoft.EntityFrameworkCore.DbFunctions _, string value);
public static byte[]? Unhex (this Microsoft.EntityFrameworkCore.DbFunctions _, string value);
static member Unhex : Microsoft.EntityFrameworkCore.DbFunctions * string -> byte[]
<Extension()>
Public Function Unhex (_ As DbFunctions, value As String) As Byte()
Parameters
The DbFunctions instance.
- value
- String
The hexadecimal string.
Returns
Decoded hexadecimal string as binary value or null
if value
is not an hexadecimal string.
Remarks
See Database functions, and Accessing SQLite databases with EF Core for more information and examples.
Applies to
Unhex(DbFunctions, String, String)
Maps to the SQLite unhex
function which returns a BLOB representing decoding of the hexadecimal string.
public static byte[] Unhex (this Microsoft.EntityFrameworkCore.DbFunctions _, string value, string ignoreChars);
public static byte[]? Unhex (this Microsoft.EntityFrameworkCore.DbFunctions _, string value, string ignoreChars);
static member Unhex : Microsoft.EntityFrameworkCore.DbFunctions * string * string -> byte[]
<Extension()>
Public Function Unhex (_ As DbFunctions, value As String, ignoreChars As String) As Byte()
Parameters
The DbFunctions instance.
- value
- String
The hexadecimal string.
- ignoreChars
- String
Characters that are ignored in value
.
Returns
Decoded hexadecimal string as binary value or null
if ignoring the characters from
ignoreChars
in value
does not result in an hexadecimal string.
Remarks
See Database functions, and Accessing SQLite databases with EF Core for more information and examples.
Applies to
Entity Framework