Пример #1
0
 public JoinNode(FromNode source, FromNode with, Node expression, JoinType joinType)
     : base($"{source.Alias}{with.Alias}")
 {
     Source     = source;
     With       = with;
     Expression = expression;
     JoinType   = joinType;
 }
Пример #2
0
 public JoinFromNode(FromNode joinFrom, FromNode from, Node expression, JoinType joinType)
     : base($"{joinFrom.Alias}{from.Alias}")
 {
     Source     = joinFrom;
     With       = from;
     Expression = expression;
     JoinType   = joinType;
 }
Пример #3
0
 public QueryNode(SelectNode select, FromNode from, WhereNode where, GroupByNode groupBy, OrderByNode orderBy,
                  SkipNode skip, TakeNode take)
 {
     Select  = select;
     From    = from;
     Where   = where;
     GroupBy = groupBy;
     OrderBy = orderBy;
     Skip    = skip;
     Take    = take;
     Id      = $"{nameof(QueryNode)}{select.Id}{from?.Id}{where?.Id}{groupBy?.Id}{orderBy?.Id}{skip?.Id}{take?.Id}";
 }
 public ExpressionFromNode(FromNode from)
     : base(from.Alias)
 {
     Expression = from;
     Id         = $"{nameof(ExpressionFromNode)}{from.ToString()}";
 }
Пример #5
0
 public OuterJoinNode(OuterJoinType outerJoinType, FromNode from, Node expression)
     : base(from, expression)
 {
     Id   = CalculateId(this);
     Type = outerJoinType;
 }
Пример #6
0
 public DescNode(FromNode from, DescForType type)
 {
     From = from;
     Id   = $"{nameof(DescNode)}{from.Id}";
     Type = type;
 }
Пример #7
0
 protected JoinNode(FromNode left, Node right)
     : base(left, right)
 {
 }
Пример #8
0
 public InnerJoinNode(FromNode from, Node expression)
     : base(from, expression)
 {
     Id = CalculateId(this);
 }