Прочетете на английски

Споделяне чрез


SqliteDbFunctionsExtensions.Unhex Method

Definition

Overloads

Unhex(DbFunctions, String)

Maps to the SQLite unhex function which returns a BLOB representing decoding of the hexadecimal string.

Unhex(DbFunctions, String, String)

Maps to the SQLite unhex function which returns a BLOB representing decoding of the hexadecimal string.

Unhex(DbFunctions, String)

Source:
SqliteDbFunctionsExtensions.cs
Source:
SqliteDbFunctionsExtensions.cs

Maps to the SQLite unhex function which returns a BLOB representing decoding of the hexadecimal string.

C#
public static byte[] Unhex (this Microsoft.EntityFrameworkCore.DbFunctions _, string value);
C#
public static byte[]? Unhex (this Microsoft.EntityFrameworkCore.DbFunctions _, string value);

Parameters

_
DbFunctions

The DbFunctions instance.

value
String

The hexadecimal string.

Returns

Byte[]

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

Entity Framework Core 9.0 и Entity Framework Core 8.0
Продукт Версии
Entity Framework Core 8.0, 9.0

Unhex(DbFunctions, String, String)

Source:
SqliteDbFunctionsExtensions.cs
Source:
SqliteDbFunctionsExtensions.cs

Maps to the SQLite unhex function which returns a BLOB representing decoding of the hexadecimal string.

C#
public static byte[] Unhex (this Microsoft.EntityFrameworkCore.DbFunctions _, string value, string ignoreChars);
C#
public static byte[]? Unhex (this Microsoft.EntityFrameworkCore.DbFunctions _, string value, string ignoreChars);

Parameters

_
DbFunctions

The DbFunctions instance.

value
String

The hexadecimal string.

ignoreChars
String

Characters that are ignored in value.

Returns

Byte[]

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 Core 9.0 и Entity Framework Core 8.0
Продукт Версии
Entity Framework Core 8.0, 9.0