Class SqlPlaceholderExpression
- Namespace
- LinqToDB.Internal.Expressions
- Assembly
- linq2db.dll
public sealed class SqlPlaceholderExpression : Expression
- Inheritance
-
objectSqlPlaceholderExpression
- Inherited Members
- Extension Methods
Constructors
SqlPlaceholderExpression(SelectQuery?, ISqlExpression, Expression, Type?, string?, int?, Expression?)
public SqlPlaceholderExpression(SelectQuery? selectQuery, ISqlExpression sql, Expression path, Type? convertType = null, string? alias = null, int? index = null, Expression? trackingPath = null)
Parameters
selectQuerySelectQuerysqlISqlExpressionpathExpressionconvertTypeTypealiasstringindexint?trackingPathExpression
Properties
Alias
public string? Alias { get; set; }
Property Value
ConvertType
public Type ConvertType { get; }
Property Value
Index
public int? Index { get; }
Property Value
- int?
NodeType
Gets the node type of this Expression.
public override ExpressionType NodeType { get; }
Property Value
- ExpressionType
One of the ExpressionType values.
Path
public Expression Path { get; }
Property Value
SelectQuery
public SelectQuery? SelectQuery { get; }
Property Value
Sql
public ISqlExpression Sql { get; }
Property Value
TrackingPath
public Expression? TrackingPath { get; }
Property Value
Type
Gets the static type of the expression that this Expression represents.
public override Type Type { get; }
Property Value
Methods
Accept(ExpressionVisitor)
Dispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall(MethodCallExpression).
protected override Expression Accept(ExpressionVisitor visitor)
Parameters
visitorExpressionVisitorThe visitor to visit this node with.
Returns
- Expression
The result of visiting this node.
Equals(SqlPlaceholderExpression)
public bool Equals(SqlPlaceholderExpression other)
Parameters
otherSqlPlaceholderExpression
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MakeNotNullable()
public SqlPlaceholderExpression MakeNotNullable()
Returns
MakeNullable()
public SqlPlaceholderExpression MakeNullable()
Returns
ToString()
Returns a textual representation of the Expression.
public override string ToString()
Returns
- string
A textual representation of the Expression.
WithAlias(string?)
public SqlPlaceholderExpression WithAlias(string? alias)
Parameters
aliasstring
Returns
WithPath(Expression)
public SqlPlaceholderExpression WithPath(Expression path)
Parameters
pathExpression
Returns
WithSelectQuery(SelectQuery)
public SqlPlaceholderExpression WithSelectQuery(SelectQuery selectQuery)
Parameters
selectQuerySelectQuery
Returns
WithSql(ISqlExpression)
public SqlPlaceholderExpression WithSql(ISqlExpression sqlExpression)
Parameters
sqlExpressionISqlExpression
Returns
WithTrackingPath(Expression)
public SqlPlaceholderExpression WithTrackingPath(Expression trackingPath)
Parameters
trackingPathExpression
Returns
WithType(Type)
public SqlPlaceholderExpression WithType(Type type)
Parameters
typeType