DbJoinTableExpression.cs 748 B

123456789101112131415161718192021222324
  1. using Ant.ORM;
  2. using System.Collections.Generic;
  3. namespace Ant.DbExpressions
  4. {
  5. public class DbJoinTableExpression : DbMainTableExpression
  6. {
  7. JoinType _joinType;
  8. DbExpression _condition;
  9. public DbJoinTableExpression(JoinType joinType, DbTableSegment table, DbExpression condition)
  10. : base(DbExpressionType.JoinTable, table)
  11. {
  12. this._joinType = joinType;
  13. this._condition = condition;
  14. }
  15. public JoinType JoinType { get { return this._joinType; } }
  16. public DbExpression Condition { get { return this._condition; } }
  17. public override T Accept<T>(DbExpressionVisitor<T> visitor)
  18. {
  19. return visitor.Visit(this);
  20. }
  21. }
  22. }