API/CodeSamples/CacheQueries.md
... ...
@@ -7,7 +7,7 @@
7 7
Gets or sets the value indicating whether the result sets of individual queries should be cached.
8 8
This feature can be very useful if you have problems with performance in your database or slow connection to it.
9 9
Results for default query (SELECT TOP 100...) will be cached, so there will be no extra queries to the data base.
10
-You can change the expiration time for this cache using something like AdHocContext.Driver.QueryCachingTime = TimeSpan.FromMinutes(1) (Default is 5 minutes).
10
+You can change the expiration time for this cache using something like: ```csharp AdHocContext.Driver.QueryCachingTime = TimeSpan.FromMinutes(1) ``` (Default is 5 minutes).
11 11
Caching the result sets of queries may result in a report not displaying the latest data (if the table has changed and the cache has not been refreshed), unless you change the number of results, or anything else that would change the query itself.
12 12
13 13
**Default Value:** True