EdmFunctions.AddMicroseconds Method (DbExpression, DbExpression)
Creates a DbFunctionExpression that invokes the canonical 'AddMicroseconds' 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 AddMicroseconds( 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 microseconds to add to timeValue.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpressionA new DbFunctionExpression that adds the number of microseconds specified by addValue to the value specified by timeValue.
Exception | Condition |
---|---|
ArgumentNullException | timeValue or addValue is null. |
ArgumentException | No overload of the canonical ‘AddMicroseconds’ function accepts arguments with the result types of timeValue and addValue. |