Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IntersectOperation"/> class.
 /// </summary>
 /// <param name="first">The first.</param>
 /// <param name="second">The second.</param>
 /// <param name="all">if set to <c>true</c> [all].</param>
 public IntersectOperation(ISetQuery first, ISetQuery second, bool all = false)
     : base(first, second)
 {
     this.All = all;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnionOperation"/> class.
 /// </summary>
 /// <param name="first">The first.</param>
 /// <param name="second">The second.</param>
 /// <param name="all">if set to <c>true</c> [all].</param>
 public UnionOperation(ISetQuery first, ISetQuery second, bool all = false)
     : base(first, second)
 {
     this.all = all;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SetOperation&lt;T&gt;"/> class.
 /// </summary>
 /// <param name="first">The first.</param>
 /// <param name="second">The second.</param>
 protected SetOperation(ISetQuery first, ISetQuery second)
 {
     this.first  = first;
     this.second = second;
 }
 /// <summary>
 /// Sets the alias for the specified set query.
 /// </summary>
 /// <param name="self">The self.</param>
 /// <param name="alias">The alias.</param>
 /// <returns></returns>
 public static ISetQuery As(this ISetQuery self, string alias)
 {
     self.Alias = alias;
     return(self);
 }
 /// <summary>
 /// Creates a EXCEPT set query with both queries.
 /// </summary>
 /// <param name="self">The self.</param>
 /// <param name="with">The with.</param>
 /// <param name="all">if set to <c>true</c> [all].</param>
 /// <returns></returns>
 public static ISetQuery Except(this ISetQuery self, ISetQuery with, bool all = false)
 {
     return(new ExceptOperation(self, with, all));
 }
 /// <summary>
 /// Creates a INTERSECT set query with both queries.
 /// </summary>
 /// <param name="self">The self.</param>
 /// <param name="with">The with.</param>
 /// <param name="all">if set to <c>true</c> [all].</param>
 /// <returns></returns>
 public static ISetQuery Intersect(this ISetQuery self, ISetQuery with, bool all = false)
 {
     return(new IntersectOperation(self, with, all));
 }
 /// <summary>
 /// Creates a UNION set query with both queries.
 /// </summary>
 /// <param name="self">The self.</param>
 /// <param name="with">The with.</param>
 /// <param name="all">if set to <c>true</c> [all].</param>
 /// <returns></returns>
 public static ISetQuery Union(this ISetQuery self, ISetQuery with, bool all = false)
 {
     return(new UnionOperation(self, with, all));
 }