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.

C#
public static bool Glob (this Microsoft.EntityFrameworkCore.DbFunctions _, string matchExpression, string pattern);

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

Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0