public IFilteredQueryOver <TEntity> As(IProjection projection) { projection.ThrowIfNull("projection"); owner.AddFilter(property, projection); return(owner); }
internal void AddFilter(string property, IProjection projection) { property.ThrowIfNull("property"); projection.ThrowIfNull("projection"); if (!projection.IsGrouped && !projection.IsAggregate) { throw new ArgumentException("Projection has to be grouped or aggregate", "projection"); } projections[property] = projection; }
public IFilteredQueryOver <TEntity> As(IProjection projection) { projection.ThrowIfNull("projection"); return(As(x => projection)); }