DbFunctions Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 class DbFunctions
public sealed class DbFunctions
type DbFunctions = class
Public Class DbFunctions
Public NotInheritable Class DbFunctions
- Inheritance
-
DbFunctions
See Database functions for more information and examples.
Coalesce |
Coalesces a Cosmos |
Is |
Returns a boolean indicating if the property has been assigned a value. Corresponds to the Cosmos |
Vector |
Returns the distance between two vectors, given a distance function (aka similarity measure). |
Vector |
Returns the distance between two vectors, given a distance function (aka similarity measure). |
Vector |
Returns the distance between two vectors, using the distance function and data type defined using IsVector(PropertyBuilder, DistanceFunction, Int32) . |
Vector |
Returns the distance between two vectors, given a distance function (aka similarity measure). |
Vector |
Returns the distance between two vectors, given a distance function (aka similarity measure). |
Vector |
Returns the distance between two vectors, using the distance function and data type defined using IsVector(PropertyBuilder, DistanceFunction, Int32) . |
Vector |
Returns the distance between two vectors, given a distance function (aka similarity measure). |
Vector |
Returns the distance between two vectors, given a distance function (aka similarity measure). |
Vector |
Returns the distance between two vectors, using the distance function and data type defined using IsVector(PropertyBuilder, DistanceFunction, Int32) . |
Like(Db |
An implementation of the SQL LIKE operation. On relational databases this is usually directly translated to SQL. |
Like(Db |
An implementation of the SQL |
Random(Db |
A random double number generator which generates a number between 0 and 1, exclusive. |
Collate<TProperty>(Db |
Explicitly specifies a collation to be used in a LINQ query. Can be used to generate fragments such as
|
Greatest<T>(Db |
Returns the greatest value from the given list of values. Usually corresponds to the |
Least<T>(Db |
Returns the smallest value from the given list of values. Usually corresponds to the |
Glob(Db |
Maps to the SQLite |
Hex(Db |
Maps to the SQLite |
Substr(Db |
Maps to the SQLite substr function which returns a subarray of the specified value. The subarray starts
at |
Substr(Db |
Maps to the SQLite |
Unhex(Db |
Maps to the SQLite |
Unhex(Db |
Maps to the SQLite |
At |
Converts |
At |
Converts |
Contains(Db |
A DbFunction method stub that can be used in LINQ queries to target the SQL Server |
Contains(Db |
A DbFunction method stub that can be used in LINQ queries to target the SQL Server |
Contains(Db |
A DbFunction method stub that can be used in LINQ queries to target the SQL Server CONTAINS store function. |
Contains(Db |
A DbFunction method stub that can be used in LINQ queries to target the SQL Server CONTAINS store function. |
Data |
Returns the number of bytes used to represent any expression. |
Data |
Returns the number of bytes used to represent any expression. |
Data |
Returns the number of bytes used to represent any expression. |
Data |
Returns the number of bytes used to represent any expression. |
Data |
Returns the number of bytes used to represent any expression. |
Data |
Returns the number of bytes used to represent any expression. |
Data |
Returns the number of bytes used to represent any expression. |
Data |
Returns the number of bytes used to represent any expression. |
Data |
Returns the number of bytes used to represent any expression. |
Date |
Counts the number of day boundaries crossed between the |
Date |
Counts the number of day boundaries crossed between the |
Date |
Counts the number of day boundaries crossed between the |
Date |
Counts the number of day boundaries crossed between the |
Date |
Counts the number of day boundaries crossed between the |
Date |
Counts the number of day boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of hour boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of microsecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of millisecond boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of minute boundaries crossed between the |
Date |
Counts the number of month boundaries crossed between the |
Date |
Counts the number of month boundaries crossed between the |
Date |
Counts the number of month boundaries crossed between the |
Date |
Counts the number of month boundaries crossed between the |
Date |
Counts the number of month boundaries crossed between the |
Date |
Counts the number of month boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of nanosecond boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of second boundaries crossed between the |
Date |
Counts the number of week boundaries crossed between the |
Date |
Counts the number of week boundaries crossed between the |
Date |
Counts the number of week boundaries crossed between the |
Date |
Counts the number of week boundaries crossed between the |
Date |
Counts the number of week boundaries crossed between the |
Date |
Counts the number of week boundaries crossed between the |
Date |
Counts the number of year boundaries crossed between the |
Date |
Counts the number of year boundaries crossed between the |
Date |
Counts the number of year boundaries crossed between the |
Date |
Counts the number of year boundaries crossed between the |
Date |
Counts the number of year boundaries crossed between |
Date |
Counts the number of year boundaries crossed between the |
Date |
Initializes a new instance of the DateTime structure to the specified year, month, day.
Corresponds to SQL Server's |
Date |
Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second,
fractions, and precision.
Corresponds to SQL Server's |
Date |
Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second,
and millisecond.
Corresponds to SQL Server's |
Date |
Initializes a new instance of the DateTimeOffset structure to the specified year, month, day, hour, minute,
second, fractions, hourOffset, minuteOffset and precision.
Corresponds to SQL Server's
|
Free |
A DbFunction method stub that can be used in LINQ queries to target the SQL Server |
Free |
A DbFunction method stub that can be used in LINQ queries to target the SQL Server |
Free |
A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function. |
Free |
A DbFunction method stub that can be used in LINQ queries to target the SQL Server FREETEXT store function. |
Is |
Validate if the given string is a valid date.
Corresponds to SQL Server's |
Is |
Validate if the given string is a valid numeric.
Corresponds to the SQL Server |
Pat |
Returns the starting position of the first occurrence of a pattern in a specified expression, or zero if the pattern is not found, on all valid text and character data types. |
Small |
Initializes a new instance of the DateTime structure to the specified year, month, day, hour and minute.
Corresponds to SQL Server's |
Standard |
Returns the population standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the population standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the population standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the population standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the population standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the population standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the population standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the sample standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the sample standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the sample standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the sample standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the sample standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the sample standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Standard |
Returns the sample standard deviation of all values in the specified expression.
Corresponds to SQL Server's |
Time |
Initializes a new instance of the TimeSpan structure to the specified hour, minute, second, fractions, and
precision. Corresponds to SQL Server's |
Variance |
Returns the population variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the population variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the population variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the population variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the population variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the population variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the population variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the sample variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the sample variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the sample variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the sample variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the sample variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the sample variance of all values in the specified expression.
Corresponds to SQL Server's |
Variance |
Returns the sample variance of all values in the specified expression.
Corresponds to SQL Server's |
Product | Versions |
---|---|
Entity Framework Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: