Ejemplo n.º 1
0
 /// <summary>
 /// Add a another condition to the HAVING Clause that need to be true
 /// </summary>
 /// <param name="having">The HAVING Clause to add</param>
 public virtual Having And(Having having)
 {
     if (having == null)
     {
         throw new System.ArgumentNullException();
     }
     Havings.Add(having);
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Add a another condition to the HAVING Clause that can be true instead
 /// </summary>
 /// <param name="having">The HAVING Clause to add</param>
 public virtual Having Or(Having having)
 {
     if (having == null)
     {
         throw new System.ArgumentNullException();
     }
     having.IsAnd = false;
     Havings.Add(having);
     return(this);
 }
Ejemplo n.º 3
0
 protected string BuildHavingClause()
 {
     return(!Havings.Any() ? string.Empty : "\nHAVING " + string.Join("\n, ", Havings));
 }
Ejemplo n.º 4
0
 public void AdicionarCondicaoAgrupamento(string condicao)
 {
     Havings.Add("(" + condicao + ")");
 }
 public void AdicionarCondicaoAgrupamento(string condicao)
 {
     Havings.Add(string.Concat("(", condicao, ")"));
 }
Ejemplo n.º 6
0
 private string BuildHavingClause()
 {
     return(!Havings.Any() ? string.Empty : $"\nHAVING {string.Join("\n, ", Havings)}");
 }