Delen via


SqliteDbFunctionsExtensions.Glob(DbFunctions, String, String) Method

Definition

Maps to the SQLite glob function which is similar to Like(DbFunctions, String, String) but uses the file system globbing syntax instead.

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

Parameters

_
DbFunctions

The DbFunctions instance.

matchExpression
String

The string that is to be matched.

pattern
String

The pattern which may involve wildcards *,?,[,^,-,].

Returns

true if there is a match.

Remarks

See Database functions, and Accessing SQLite databases with EF Core for more information and examples.

Applies to