语言

SqliteDbFunctionsExtensions.Unhex 方法

定义

重载

名称 说明
Unhex(DbFunctions, String)

映射到 SQLite unhex 函数,该函数返回表示十六进制字符串解码的 BLOB。

Unhex(DbFunctions, String, String)

映射到 SQLite unhex 函数,该函数返回表示十六进制字符串解码的 BLOB。

Unhex(DbFunctions, String)

Source:
SqliteDbFunctionsExtensions.cs
Source:
SqliteDbFunctionsExtensions.cs
Source:
SqliteDbFunctionsExtensions.cs
Source:
SqliteDbFunctionsExtensions.cs

映射到 SQLite unhex 函数,该函数返回表示十六进制字符串解码的 BLOB。

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()

参数

_
DbFunctions

DbFunctions 实例。

value
String

十六进制字符串。

返回

Byte[]

将十六进制字符串解码为二进制值,或者nullvalue不是十六进制字符串。

注解

有关详细信息和示例,请参阅 数据库函数以及 使用 EF Core 访问 SQLite 数据库 。

适用于

Unhex(DbFunctions, String, String)

Source:
SqliteDbFunctionsExtensions.cs
Source:
SqliteDbFunctionsExtensions.cs
Source:
SqliteDbFunctionsExtensions.cs
Source:
SqliteDbFunctionsExtensions.cs

映射到 SQLite unhex 函数,该函数返回表示十六进制字符串解码的 BLOB。

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()

参数

_
DbFunctions

DbFunctions 实例。

value
String

十六进制字符串。

ignoreChars
String

中 value忽略的字符。

返回

Byte[]

将十六进制字符串解码为二进制值,或者 null 忽略 in ignoreChars 中的 value 字符不会导致十六进制字符串。

注解

有关详细信息和示例,请参阅 数据库函数以及 使用 EF Core 访问 SQLite 数据库 。

适用于