55ebe01906a11dfae53a24e47b995040b469ddc9
API/CodeSamples/SchemaCacheTimeout.md
| ... | ... | @@ -23,7 +23,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 23 | 23 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
| 24 | 24 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 25 | 25 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 26 | - AdHocSettings.SchemaCacheTimeout = 500; //The relevant setting |
|
| 26 | + AdHocSettings.SchemaCacheTimeout = new TimeSpan(1, 0, 0, 0); //The relevant setting |
|
| 27 | 27 | AdHocContext.Initialized = true; |
| 28 | 28 | } |
| 29 | 29 | } |
| ... | ... | @@ -44,7 +44,7 @@ Public Class CustomAdHocConfig |
| 44 | 44 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 45 | 45 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 46 | 46 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 47 | - AdHocSettings.SchemaCacheTimeout = 441 'The relevant setting |
|
| 47 | + AdHocSettings.SchemaCacheTimeout = New TimeSpan(1, 0, 0, 0) 'The relevant setting |
|
| 48 | 48 | AdHocContext.Initialized = True |
| 49 | 49 | End Sub |
| 50 | 50 | End Class |