示例#1
0
 public void TestSelect_Minus()
 {
     SelectBuilder builder = new SelectBuilder();
     builder.AddProjection(new NumericLiteral(1));
     Minus union = new Minus(builder, builder);
     Formatter formatter = new Formatter();
     string commandText = formatter.GetCommandText(union);
     string expected = "SELECT 1 MINUS SELECT 1";
     Assert.AreEqual(expected, commandText, "The wrong SQL was generated.");
 }
 /// <summary>
 /// Generates the text for a Minus builder.
 /// </summary>
 /// <param name="item">The Minus builder to generate the text for.</param>
 protected internal override void VisitMinus(Minus item)
 {
     visitSelectCombiner(item, "MINUS");
 }
示例#3
0
 /// <summary>
 /// Visits a Minus builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitMinus(Minus item)
 {
 }