EdmFunctions.AddMilliseconds Method (DbExpression, DbExpression)
Creates a DbFunctionExpression that invokes the canonical 'AddMilliseconds' function with the specified arguments, which must have DateTime, DateTimeOffset or Time, and integer result types. The result type of the expression is the same as the result type of timeValue.
Assembly: EntityFramework (in EntityFramework.dll)
public static DbFunctionExpression AddMilliseconds( this DbExpression timeValue, DbExpression addValue )
Parameters
- timeValue
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the value to which addValue should be added.
- addValue
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the number of milliseconds to add to timeValue.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpressionA new DbFunctionExpression that adds the number of milliseconds specified by addValue to the value specified by timeValue.
Exception | Condition |
---|---|
ArgumentNullException | timeValue or addValue is null. |
ArgumentException | No overload of the canonical ‘AddMilliseconds’ function accepts arguments with the result types of timeValue and addValue. |