DbExpressions.DbExpressionFactory.AddHours C# (CSharp) Method

AddHours() public method

Creates a DbDateTimeFunctionExpression that represents adding the specified number of hours to the target date time.
public AddHours ( DbExpression target, DbExpression numberExpression ) : DbDateTimeFunctionExpression
target DbExpression A that represents the target date time.
numberExpression DbExpression A that represents the number of hours to add.
return DbDateTimeFunctionExpression
        public DbDateTimeFunctionExpression AddHours(DbExpression target, DbExpression numberExpression)
        {
            return MakeDateTimeFunction(DbDateTimeFunctionExpressionType.AddHours, new[] { target, numberExpression });
        }