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 _parameters; public DbAggregateExpression(Type type, MethodInfo method, IList parameters) : base(DbExpressionType.Aggregate, type) { this._method = method; this._parameters = new ReadOnlyCollection(parameters); } public MethodInfo Method { get { return this._method; } } public ReadOnlyCollection Parameters { get { return this._parameters; } } public override T Accept(DbExpressionVisitor visitor) { return visitor.Visit(this); } } }