SqlServerDbFunctionsExtensions.PatIndex(DbFunctions, String, String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した式でパターンが最初に出現した位置の開始位置を返します。パターンが見つからない場合は、すべての有効なテキストデータ型と文字データ型で 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 のインスタンスです。
- pattern
- String
検索する文字列パターン。
- expression
- String
通常、指定されたパターンを検索する列
戻り値
指定した式でパターンが最初に出現する位置の開始位置を返します。
注釈
詳細と例については、「データベース関数」および「EF Core を使用したSQL ServerおよびAzure SQLデータベースへのアクセス」を参照してください。