コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 /// <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));
 }
コード例 #7
0
 /// <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));
 }