Language

SqlServerDbFunctionsExtensions.PatIndex(DbFunctions, String, String) メソッド

定義

指定した式でパターンが最初に出現した位置の開始位置を返します。パターンが見つからない場合は、すべての有効なテキストデータ型と文字データ型で 0 を返します。

public static long PatIndex(this Microsoft.EntityFrameworkCore.DbFunctions _, string pattern, string expression);
static member PatIndex : Microsoft.EntityFrameworkCore.DbFunctions * string * string -> int64
<Extension()>
Public Function PatIndex (_ As DbFunctions, pattern As String, expression As String) As Long

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

pattern
String

検索する文字列パターン。

expression
String

通常、指定されたパターンを検索する列

戻り値

指定した式でパターンが最初に出現する位置の開始位置を返します。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したSQL ServerおよびAzure SQLデータベースへのアクセス」を参照してください。

適用対象