DbBinaryExpression.cs 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Reflection;
  3. namespace Ant.DbExpressions
  4. {
  5. public abstract class DbBinaryExpression : DbExpression
  6. {
  7. DbExpression _left;
  8. DbExpression _right;
  9. MethodInfo _method;
  10. protected DbBinaryExpression(DbExpressionType nodeType, Type type, DbExpression left, DbExpression right)
  11. : this(nodeType, type, left, right, null)
  12. {
  13. }
  14. protected DbBinaryExpression(DbExpressionType nodeType, Type type, DbExpression left, DbExpression right, MethodInfo method)
  15. : base(nodeType, type)
  16. {
  17. this._left = left;
  18. this._right = right;
  19. this._method = method;
  20. }
  21. public DbExpression Left { get { return this._left; } }
  22. public DbExpression Right { get { return this._right; } }
  23. public MethodInfo Method { get { return this._method; } }
  24. public override T Accept<T>(DbExpressionVisitor<T> visitor)
  25. {
  26. throw new NotImplementedException();
  27. }
  28. }
  29. }