语言

SqliteDbFunctionsExtensions.Substr 方法

定义

重载

名称 说明
Substr(DbFunctions, Byte[], Int32)

映射到返回指定值的子数组的 SQLite substr 函数。 子数组从 startIndex 值开始并继续结束。

Substr(DbFunctions, Byte[], Int32, Int32)

映射到 SQLite 子字符串函数,该函数返回指定值的子数组。 子数组从指定位置 startIndex 开始并具有指定的 length。

Substr(DbFunctions, Byte[], Int32)

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

映射到返回指定值的子数组的 SQLite substr 函数。 子数组从 startIndex 值开始并继续结束。

public static byte[] Substr(this Microsoft.EntityFrameworkCore.DbFunctions _, byte[] bytes, int startIndex);
static member Substr : Microsoft.EntityFrameworkCore.DbFunctions * byte[] * int -> byte[]
<Extension()>
Public Function Substr (_ As DbFunctions, bytes As Byte(), startIndex As Integer) As Byte()

参数

_
DbFunctions

DbFunctions 实例。

bytes
Byte[]

二进制值。

startIndex
Int32

基于 1 的起始索引。 如果为负数,则索引相对于值的末尾。

返回

Byte[]

子数组。

注解

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

适用于

Substr(DbFunctions, Byte[], Int32, Int32)

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

映射到 SQLite 子字符串函数,该函数返回指定值的子数组。 子数组从指定位置 startIndex 开始并具有指定的 length。

public static byte[] Substr(this Microsoft.EntityFrameworkCore.DbFunctions _, byte[] bytes, int startIndex, int length);
static member Substr : Microsoft.EntityFrameworkCore.DbFunctions * byte[] * int * int -> byte[]
<Extension()>
Public Function Substr (_ As DbFunctions, bytes As Byte(), startIndex As Integer, length As Integer) As Byte()

参数

_
DbFunctions

DbFunctions 实例。

bytes
Byte[]

二进制值。

startIndex
Int32

基于 1 的起始索引。 如果为负数,则索引相对于值的末尾。

length
Int32

子数组的长度。 如果为负数,则返回前面的 startIndex 字节。

返回

Byte[]

子数组。

注解

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

适用于