SqliteDbFunctionsExtensions.Hex(DbFunctions, Byte[]) Method

Definition

Maps to the SQLite hex function which returns a hexadecimal string representing the specified value.

C#
public static string Hex (this Microsoft.EntityFrameworkCore.DbFunctions _, byte[] bytes);

Parameters

_
DbFunctions

The DbFunctions instance.

bytes
Byte[]

The binary value.

Returns

A hexadecimal string.

Remarks

See Database functions, and Accessing SQLite databases with EF Core for more information and examples.

Applies to

Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0