语言

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 数据库 。

适用于