SqliteDbFunctionsExtensions.Substr Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Substr(DbFunctions, Byte[], Int32) |
Maps to the SQLite |
Substr(DbFunctions, Byte[], Int32, Int32) |
Maps to the SQLite substr function which returns a subarray of the specified value. The subarray starts
at |
Substr(DbFunctions, Byte[], Int32)
Maps to the SQLite substr
function which returns a subarray of the specified value. The subarray starts
at startIndex
and continues to the end of the value.
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()
Parameters
The DbFunctions instance.
- bytes
- Byte[]
The binary value.
- startIndex
- Int32
The 1-based starting index. If negative, the index is relative to the end of the value.
Returns
The subarray.
Remarks
See Database functions, and Accessing SQLite databases with EF Core for more information and examples.
Applies to
Substr(DbFunctions, Byte[], Int32, Int32)
Maps to the SQLite substr function which returns a subarray of the specified value. The subarray starts
at startIndex
and has the specified 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()
Parameters
The DbFunctions instance.
- bytes
- Byte[]
The binary value.
- startIndex
- Int32
The 1-based starting index. If negative, the index is relative to the end of the value.
- length
- Int32
The length of the subarray. If negative, bytes preceding startIndex
are returned.
Returns
The subarray.
Remarks
See Database functions, and Accessing SQLite databases with EF Core for more information and examples.
Applies to
Entity Framework