コード例 #1
0
 /// <summary>
 /// Generates the text for a LessThanQuantifierFilter builder.
 /// </summary>
 /// <param name="item">The LessThanQuantifierFilter builder to generate the text for.</param>
 protected internal override void VisitLessThanQuantifierFilter(LessThanQuantifierFilter item)
 {
     visitQuantifiedFilter(item, "<");
 }
コード例 #2
0
 public void TestSelect_Some()
 {
     SelectBuilder builder = new SelectBuilder();
     AliasedSource table = builder.AddTable(new Table("Table"));
     builder.AddProjection(table.Column("Column"));
     ValueList values = new ValueList(new NumericLiteral(1), new NumericLiteral(2), new NumericLiteral(3));
     LessThanQuantifierFilter filter = new LessThanQuantifierFilter(table.Column("Column"), Quantifier.Some, values);
     builder.AddWhere(filter);
     Formatter formatter = new Formatter();
     string commandText = formatter.GetCommandText(builder);
     string expected = "SELECT Table.Column FROM Table WHERE Table.Column < SOME (1, 2, 3)";
     Assert.AreEqual(expected, commandText, "The wrong SQL was generated.");
 }
コード例 #3
0
 /// <summary>
 /// Visits a LessThanQuantifierFilter builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitLessThanQuantifierFilter(LessThanQuantifierFilter item)
 {
 }
コード例 #4
0
 /// <summary>
 /// Visits a LessThanQuantifierFilter builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitLessThanQuantifierFilter(LessThanQuantifierFilter item)
 {
 }