Exemple #1
0
 /// <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;
 }
Exemple #2
0
 /// <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;
 }
Exemple #3
0
 public ProjectionList Add(ProjectionList projections)
 {
     elements.AddRange(projections.Elements);
     return this;
 }
Exemple #4
0
 /// <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);
 }
Exemple #5
0
 public ProjectionList Add(ProjectionList projections)
 {
     elements.AddRange(projections.Elements);
     return(this);
 }
Exemple #6
0
 /// <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;
 }