/// <summary> /// Конструктор /// </summary> /// <param name="persistentClass">Class for which filter created</param> /// <param name="alias">Filter alias</param> public Filter(Type persistentClass, string alias) { _subqueries = new Hashtable(); OrderEntries = new List <OrderEntry>(); _joinList = new Hashtable(); _criteria = new List <CriterionEntry>(); Projections = new ProjectionList(); _persistentClass = persistentClass; Alias = alias; MaxResult = -1; }
/// <summary> /// Конструктор /// </summary> /// <param name="persistentClass">Class for which filter created</param> /// <param name="alias">Filter alias</param> public Filter(Type persistentClass, string alias) { _subqueries = new Hashtable(); OrderEntries = new List<OrderEntry>(); _joinList = new Hashtable(); _criteria = new List<CriterionEntry>(); Projections = new ProjectionList(); _persistentClass = persistentClass; Alias = alias; MaxResult = -1; }
public ProjectionList Add(ProjectionList projections) { elements.AddRange(projections.Elements); return this; }
/// <summary> /// Used to specify that the query results will be a projection (scalar in nature). Implicitly specifies the projection result transformer. /// </summary> /// <param name="projections">The projection list representing the overall "shape" of the query results.</param> /// <returns></returns> public virtual IFilter AddProjection(ProjectionList projections) { Projections.Add(projections); return(this); }
public ProjectionList Add(ProjectionList projections) { elements.AddRange(projections.Elements); return(this); }
/// <summary> /// Used to specify that the query results will be a projection (scalar in nature). Implicitly specifies the projection result transformer. /// </summary> /// <param name="projections">The projection list representing the overall "shape" of the query results.</param> /// <returns></returns> public virtual IFilter AddProjection(ProjectionList projections) { Projections.Add(projections); return this; }