SqlServerDbFunctionsExtensions.FreeText Method

Definition

Overloads

FreeText(DbFunctions, Object, String, Int32)

A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function.

FreeText(DbFunctions, String, String, Int32)

A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function.

FreeText(DbFunctions, Object, String)

A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function.

FreeText(DbFunctions, String, String)

A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function.

FreeText(DbFunctions, Object, String, Int32)

Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs

A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function.

C#
public static bool FreeText (this Microsoft.EntityFrameworkCore.DbFunctions _, object propertyReference, string freeText, int languageTerm);

Parameters

_
DbFunctions

The DbFunctions instance.

propertyReference
Object

The property on which the search will be performed.

freeText
String

The text that will be searched for in the property.

languageTerm
Int32

A Language ID from the sys.syslanguages table.

Returns

Remarks

See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0

FreeText(DbFunctions, String, String, Int32)

Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs

A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function.

C#
public static bool FreeText (this Microsoft.EntityFrameworkCore.DbFunctions _, string propertyReference, string freeText, int languageTerm);

Parameters

_
DbFunctions

DbFunctions instance

propertyReference
String

The property on which the search will be performed.

freeText
String

The text that will be searched for in the property.

languageTerm
Int32

A Language ID from the sys.syslanguages table.

Returns

Remarks

This DbFunction method has no in-memory implementation and will throw if the query switches to client-evaluation. This can happen if the query contains one or more expressions that could not be translated to the store.

Applies to

Entity Framework Core 5.0 and other versions
Product Versions
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0

FreeText(DbFunctions, Object, String)

Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs

A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function.

C#
public static bool FreeText (this Microsoft.EntityFrameworkCore.DbFunctions _, object propertyReference, string freeText);

Parameters

_
DbFunctions

The DbFunctions instance.

propertyReference
Object

The property on which the search will be performed.

freeText
String

The text that will be searched for in the property.

Returns

Remarks

See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0

FreeText(DbFunctions, String, String)

Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs
Source:
SqlServerDbFunctionsExtensions.cs

A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function.

C#
public static bool FreeText (this Microsoft.EntityFrameworkCore.DbFunctions _, string propertyReference, string freeText);

Parameters

_
DbFunctions

DbFunctions instance

propertyReference
String

The property on which the search will be performed.

freeText
String

The text that will be searched for in the property.

Returns

Remarks

This DbFunction method has no in-memory implementation and will throw if the query switches to client-evaluation. This can happen if the query contains one or more expressions that could not be translated to the store.

Applies to

Entity Framework Core 5.0 and other versions
Product Versions
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0