Compartilhar 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.

public static class RelationalDbFunctionsExtensions
type RelationalDbFunctionsExtensions = class
Public Module RelationalDbFunctionsExtensions
Inheritance
RelationalDbFunctionsExtensions

Remarks

See Database functions for more information and examples.

Methods

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