Class SqlColumn
public class SqlColumn : IEquatable<SqlColumn>, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable
- Inheritance
-
SqlColumn
- Implements
- Extension Methods
Constructors
SqlColumn(SelectQuery, ISqlExpression)
public SqlColumn(SelectQuery builder, ISqlExpression expression)
Parameters
builder
SelectQueryexpression
ISqlExpression
SqlColumn(SelectQuery?, ISqlExpression, string?)
public SqlColumn(SelectQuery? parent, ISqlExpression expression, string? alias)
Parameters
parent
SelectQueryexpression
ISqlExpressionalias
string
Properties
Alias
public string? Alias { get; set; }
Property Value
CanBeNull
public bool CanBeNull { get; }
Property Value
ElementType
public QueryElementType ElementType { get; }
Property Value
Expression
public ISqlExpression Expression { get; set; }
Property Value
Parent
public SelectQuery? Parent { get; set; }
Property Value
Precedence
public int Precedence { get; }
Property Value
SystemType
public Type? SystemType { get; }
Property Value
Methods
Equals(ISqlExpression, Func<ISqlExpression, ISqlExpression, bool>)
public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
Parameters
other
ISqlExpressioncomparer
Func<ISqlExpression, ISqlExpression, bool>
Returns
Equals(SqlColumn?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SqlColumn? other)
Parameters
other
SqlColumnAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
UnderlyingExpression()
public ISqlExpression UnderlyingExpression()
Returns
Walk<TContext>(WalkOptions, TContext, Func<TContext, ISqlExpression, ISqlExpression>)
public ISqlExpression Walk<TContext>(WalkOptions options, TContext context, Func<TContext, ISqlExpression, ISqlExpression> func)
Parameters
options
WalkOptionscontext
TContextfunc
Func<TContext, ISqlExpression, ISqlExpression>
Returns
Type Parameters
TContext