SqlExpressionFactory.MakeUnary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MakeUnary(ExpressionType, SqlExpression, Type, RelationalTypeMapping, SqlExpression) |
Creates a new SqlExpression with the given arguments. |
MakeUnary(ExpressionType, SqlExpression, Type, RelationalTypeMapping) |
Creates a new SqlUnaryExpression with the given arguments. |
MakeUnary(ExpressionType, SqlExpression, Type, RelationalTypeMapping, SqlExpression)
- Source:
- SqlExpressionFactory.cs
Creates a new SqlExpression with the given arguments.
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? MakeUnary (System.Linq.Expressions.ExpressionType operatorType, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, Type type, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? existingExpression = default);
abstract member MakeUnary : System.Linq.Expressions.ExpressionType * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.MakeUnary : System.Linq.Expressions.ExpressionType * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function MakeUnary (operatorType As ExpressionType, operand As SqlExpression, type As Type, Optional typeMapping As RelationalTypeMapping = Nothing, Optional existingExpression As SqlExpression = Nothing) As SqlExpression
Parameters
- operatorType
- ExpressionType
An ExpressionType representing SQL unary operator.
- operand
- SqlExpression
A SqlExpression to apply unary operator on.
- type
- Type
The type of the created expression.
- typeMapping
- RelationalTypeMapping
A type mapping to be assigned to the created expression.
- existingExpression
- SqlExpression
An optional expression that can be re-used if it matches the new expression.
Returns
A SqlExpression with the given arguments.
Implements
Applies to
MakeUnary(ExpressionType, SqlExpression, Type, RelationalTypeMapping)
- Source:
- SqlExpressionFactory.cs
- Source:
- SqlExpressionFactory.cs
- Source:
- SqlExpressionFactory.cs
- Source:
- SqlExpressionFactory.cs
- Source:
- SqlExpressionFactory.cs
- Source:
- SqlExpressionFactory.cs
Creates a new SqlUnaryExpression with the given arguments.
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlUnaryExpression MakeUnary (System.Linq.Expressions.ExpressionType operatorType, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, Type type, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlUnaryExpression? MakeUnary (System.Linq.Expressions.ExpressionType operatorType, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, Type type, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member MakeUnary : System.Linq.Expressions.ExpressionType * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlUnaryExpression
override this.MakeUnary : System.Linq.Expressions.ExpressionType * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlUnaryExpression
Public Overridable Function MakeUnary (operatorType As ExpressionType, operand As SqlExpression, type As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlUnaryExpression
Parameters
- operatorType
- ExpressionType
An ExpressionType representing SQL unary operator.
- operand
- SqlExpression
A SqlExpression to apply unary operator on.
- type
- Type
The type of the created expression.
- typeMapping
- RelationalTypeMapping
A type mapping to be assigned to the created expression.
Returns
A SqlUnaryExpression with the given arguments.
Implements
Applies to
Entity Framework