SqliteDbFunctionsExtensions.Glob(DbFunctions, String, String) 方法

定義

對應至 SQLite glob 函式,其類似于 Like(DbFunctions, String, String) ,但會改用檔案系統萬用字元語法。

public static bool Glob (this Microsoft.EntityFrameworkCore.DbFunctions _, string matchExpression, string pattern);
static member Glob : Microsoft.EntityFrameworkCore.DbFunctions * string * string -> bool
<Extension()>
Public Function Glob (_ As DbFunctions, matchExpression As String, pattern As String) As Boolean

參數

_
DbFunctions

DbFunctions 執行個體。

matchExpression
String

要比對的字串。

pattern
String

可能涉及萬用字元 的 *,?,[,^,-,] 模式。

傳回

true 如果有相符專案,則為 。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取 SQLite 資料庫和資料庫函式。

適用於