EdmFunctions.Min Method (DbExpression)
Creates a DbFunctionExpression that invokes the canonical 'Min' function over the specified collection. The result type of the expression is the same as the element type of the collection.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- collection
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the collection from which the minimum value should be retrieved.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpressionA new DbFunctionExpression that produces the minimum value.
Exception | Condition |
---|---|
ArgumentNullException | collection is null. |
ArgumentException | No overload of the canonical 'Min' function accepts an argument with the result type of collection. |