コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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)
 {
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <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)
 {
 }