API/CodeSamples/OracleConnectionString.md
... ...
@@ -0,0 +1,50 @@
1
+#OracleConnectionString
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+Gets or sets the connection string used to connect to an Oracle database.
8
+
9
+**Default Value:** String.Empty
10
+
11
+##Global.asax (C♯)
12
+
13
+```csharp
14
+//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
15
+public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
16
+{
17
+ // Configure settings
18
+ // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
19
+ public static void InitializeReporting() {
20
+ //Check to see if we've already initialized.
21
+ if (AdHocContext.Initialized)
22
+ return;
23
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
24
+ AdHocSettings.OracleConnectionString = "INSERT_CONNECTION_STRING_HERE"; //The relevant setting
25
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
26
+ AdHocContext.Initialized = true;
27
+ }
28
+}
29
+```
30
+
31
+##Global.asax (VB.NET)
32
+
33
+```visualbasic
34
+
35
+'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
36
+Public Class CustomAdHocConfig
37
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
38
+
39
+ Shared Sub InitializeReporting()
40
+ 'Check to see if we've already initialized
41
+ If AdHocContext.Initialized Then
42
+ Return
43
+ 'Initialize System
44
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
45
+ AdHocSettings.OracleConnectionString = "INSERT_CONNECTION_STRING_HERE" 'The relevant setting
46
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
47
+ AdHocContext.Initialized = True
48
+ End Sub
49
+End Class
50
+```
... ...
\ No newline at end of file