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
builderSelectQueryexpressionISqlExpression
SqlColumn(SelectQuery?, ISqlExpression, string?)
public SqlColumn(SelectQuery? parent, ISqlExpression expression, string? alias)
Parameters
parentSelectQueryexpressionISqlExpressionaliasstring
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
otherISqlExpressioncomparerFunc<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
otherSqlColumnAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; 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
optionsWalkOptionscontextTContextfuncFunc<TContext, ISqlExpression, ISqlExpression>
Returns
Type Parameters
TContext