1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- namespace Ant.DbExpressions
- {
- public class DbAggregateExpression : DbExpression
- {
- MethodInfo _method;
- ReadOnlyCollection<DbExpression> _parameters;
- public DbAggregateExpression(Type type, MethodInfo method, IList<DbExpression> parameters)
- : base(DbExpressionType.Aggregate, type)
- {
- this._method = method;
- this._parameters = new ReadOnlyCollection<DbExpression>(parameters);
- }
- public MethodInfo Method { get { return this._method; } }
- public ReadOnlyCollection<DbExpression> Parameters { get { return this._parameters; } }
- public override T Accept<T>(DbExpressionVisitor<T> visitor)
- {
- return visitor.Visit(this);
- }
- }
- }
|