/// <summary> /// Initializes a new instance of the <see cref="DbUnaryExpression"/> class. /// </summary> /// <param name="unaryExpressionType">The <see cref="DbUnaryExpressionType"/> that this <see cref="DbUnaryExpression"/> represents.</param> /// <param name="operand">The <see cref="DbExpression"/> that represents the unary operand.</param> /// <param name="targetType">The <see cref="Type"/> that specifies the type to convert to.</param> internal DbUnaryExpression(DbUnaryExpressionType unaryExpressionType, DbExpression operand, Type targetType) { UnaryExpressionType = unaryExpressionType; Operand = operand; TargetType = targetType; }
/// <summary> /// Initializes a new instance of the <see cref="DbUnaryExpression"/> class. /// </summary> /// <param name="unaryExpressionType">The <see cref="DbUnaryExpressionType"/> that this <see cref="DbUnaryExpression"/> represents.</param> /// <param name="operand">The <see cref="DbExpression"/> that represents the unary operand.</param> internal DbUnaryExpression(DbUnaryExpressionType unaryExpressionType, DbExpression operand) : this(unaryExpressionType,operand,null) { }
/// <summary> /// Creates a new <see cref="DbUnaryExpression"/>. /// </summary> /// <param name="unaryExpressionType">The <see cref="DbUnaryExpressionType"/> that specifies the type of unary expression to create.</param> /// <param name="operand">The <see cref="DbExpression"/> that represents the unary operand.</param> /// <param name="targetType">The <see cref="Type"/> that specifies the type to convert to.</param> /// <returns>A <see cref="DbUnaryExpression"/> instance.</returns> public DbUnaryExpression MakeUnary(DbUnaryExpressionType unaryExpressionType, DbExpression operand, Type targetType) { var unaryExpression = new DbUnaryExpression(unaryExpressionType, operand, targetType); return unaryExpression; }
/// <summary> /// Initializes a new instance of the <see cref="DbUnaryExpression"/> class. /// </summary> /// <param name="unaryExpressionType">The <see cref="DbUnaryExpressionType"/> that this <see cref="DbUnaryExpression"/> represents.</param> /// <param name="operand">The <see cref="DbExpression"/> that represents the unary operand.</param> internal DbUnaryExpression(DbUnaryExpressionType unaryExpressionType, DbExpression operand) : this(unaryExpressionType, operand, null) { }