SqliteDbFunctionsExtensions.Substr 方法

定義

多載

Substr(DbFunctions, Byte[], Int32)

對應至 SQLite substr 函式,此函式會傳回指定值的子陣列。 子陣列會從 開始 startIndex ,並繼續到值的結尾。

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

對應至 SQLite 子字串函式,此函式會傳回指定值的子陣列。 子陣列從 開始 startIndex ,並具有指定的 length

Substr(DbFunctions, Byte[], Int32)

對應至 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)

對應至 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 資料庫和資料庫函式。

適用於