Share via


RelationalDbFunctionsExtensions Class

Definition

Provides CLR methods that get translated to database functions when used in LINQ to Entities queries. The methods on this class are accessed via Functions.

[System.Runtime.CompilerServices.Nullable(0)]
public static class RelationalDbFunctionsExtensions
public static class RelationalDbFunctionsExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalDbFunctionsExtensions = class
type RelationalDbFunctionsExtensions = class
Public Module RelationalDbFunctionsExtensions
Inheritance
RelationalDbFunctionsExtensions
Attributes

Remarks

See Database functions for more information and examples.

Methods

Name Description
Collate<TProperty>(DbFunctions, TProperty, String)

Explicitly specifies a collation to be used in a LINQ query. Can be used to generate fragments such as WHERE customer.name COLLATE 'de_DE' = 'John Doe'.

Greatest<T>(DbFunctions, T[])

Returns the greatest value from the given list of values. Usually corresponds to the GREATEST SQL function.

Least<T>(DbFunctions, T[])

Returns the smallest value from the given list of values. Usually corresponds to the LEAST SQL function.

Applies to