SqliteDbFunctionsExtensions.Unhex 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Unhex(DbFunctions, String) |
映射到 SQLite |
| Unhex(DbFunctions, String, String) |
映射到 SQLite |
Unhex(DbFunctions, String)
映射到 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 实例。
- value
- String
十六进制字符串。
返回
将十六进制字符串解码为二进制值,或者nullvalue不是十六进制字符串。
注解
有关详细信息和示例,请参阅 数据库函数以及 使用 EF Core 访问 SQLite 数据库 。
适用于
Unhex(DbFunctions, String, String)
映射到 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 实例。
- value
- String
十六进制字符串。
- ignoreChars
- String
中 value忽略的字符。
返回
将十六进制字符串解码为二进制值,或者 null 忽略 in ignoreChars 中的 value 字符不会导致十六进制字符串。
注解
有关详细信息和示例,请参阅 数据库函数以及 使用 EF Core 访问 SQLite 数据库 。