DbExpressions.DbExpressionFactory.AddMonths C# (CSharp) Method

AddMonths() public method

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