@@ -1671,7 +1671,6 @@ public static void testQuerySyntaxAll()
1671
1671
{
1672
1672
// For Documentation
1673
1673
var dbName = "travel-sample" ;
1674
- var this_Db = new Database ( dbName ) ;
1675
1674
1676
1675
string thisDocsId ;
1677
1676
string thisDocsName ;
@@ -1680,9 +1679,11 @@ public static void testQuerySyntaxAll()
1680
1679
Dictionary < string , object > hotel = new Dictionary < string , object > ( ) ;
1681
1680
1682
1681
// tag::query-syntax-all[]
1682
+ var this_Db = new Database ( "hotels" ) ;
1683
+
1683
1684
var query = QueryBuilder
1684
1685
. Select ( SelectResult . All ( ) )
1685
- . From ( DataSource . Database ( this_Db ) ) ; // <.>
1686
+ . From ( DataSource . Database ( this_Db ) ) ;
1686
1687
1687
1688
// end::query-syntax-all[]
1688
1689
@@ -1717,13 +1718,16 @@ private static void testQuerySyntaxProps()
1717
1718
{
1718
1719
// For Documentation
1719
1720
var dbName = "travel-sample" ;
1720
- var this_Db = new Database ( dbName ) ;
1721
+ // var this_Db = new Database(dbName);
1721
1722
1722
1723
string thisDocsName ;
1723
1724
string thisDocsType ;
1724
1725
string thisDocsCity ;
1725
1726
// tag::query-syntax-props[]
1727
+ var this_Db = new Database ( "hotels" ) ;
1728
+
1726
1729
Dictionary < string , object > hotel = new Dictionary < string , object > ( ) ;
1730
+
1727
1731
List < Dictionary < string , object > > hotels = new List < Dictionary < string , object > > ( ) ;
1728
1732
1729
1733
var query = QueryBuilder . Select (
@@ -1750,7 +1754,6 @@ private static void testQuerySyntaxProps()
1750
1754
1751
1755
}
1752
1756
1753
-
1754
1757
// end::query-access-props[]
1755
1758
} // test-query-access-props
1756
1759
@@ -1760,12 +1763,13 @@ private static void testQuerySyntaxCount()
1760
1763
{
1761
1764
// For Documentation
1762
1765
var dbName = "travel-sample" ;
1763
- var this_Db = new Database ( dbName ) ;
1766
+ // var this_Db = new Database(dbName);
1764
1767
1765
1768
Dictionary < string , object > hotel = new Dictionary < string , object > ( ) ;
1766
1769
List < Dictionary < string , object > > hotels = new List < Dictionary < string , object > > ( ) ;
1767
1770
1768
1771
// tag::query-syntax-count-only[]
1772
+ var this_Db = new Database ( "hotels" ) ;
1769
1773
1770
1774
var query =
1771
1775
QueryBuilder
@@ -1797,13 +1801,14 @@ private static void ibQueryForID()
1797
1801
1798
1802
// For Documentation
1799
1803
var dbName = "travel-sample" ;
1800
- var this_Db = new Database ( dbName ) ;
1804
+ // var this_Db = new Database(dbName);
1801
1805
1802
1806
Dictionary < string , object > hotel = new Dictionary < string , object > ( ) ;
1803
1807
List < Dictionary < string , object > > hotels = new List < Dictionary < string , object > > ( ) ;
1804
1808
1805
1809
1806
1810
// tag::query-syntax-id[]
1811
+ var this_Db = new Database ( "hotels" ) ;
1807
1812
1808
1813
var query = QueryBuilder
1809
1814
. Select ( SelectResult . Expression ( Meta . ID ) . As ( "this_ID" ) )
@@ -1830,9 +1835,10 @@ private static void testQueryPagination()
1830
1835
{
1831
1836
// For Documentation
1832
1837
var dbName = "travel-sample" ;
1833
- var this_Db = new Database ( dbName ) ;
1838
+ // var this_Db = new Database(dbName);
1834
1839
1835
1840
// tag::query-syntax-pagination[]
1841
+ var this_Db = new Database ( "hotels" ) ;
1836
1842
1837
1843
var thisLimit = 20 ;
1838
1844
var thisOffset = 0 ;
0 commit comments