37144f43dc30724c70c6cad541597659bfb6b535
API/CodeSamples/ExtendedFunctions.md
| ... | ... | @@ -20,10 +20,8 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 20 | 20 | //Creates a connection to Microsoft SQL Server |
| 21 | 21 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 22 | 22 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 23 | - HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 24 | - } |
|
| 25 | - public override void ConfigureSettings() { |
|
| 26 | 23 | AdHocSettings.ExtendedFunctions = new string[] { "[dbo].[SafeDivide]" }; |
| 24 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 27 | 25 | } |
| 28 | 26 | } |
| 29 | 27 | ``` |
| ... | ... | @@ -43,11 +41,8 @@ Public Class CustomAdHocConfig |
| 43 | 41 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 44 | 42 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 45 | 43 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 46 | - HttpContext.Current.Session("ReportingInitialized") = True |
|
| 47 | - End Sub |
|
| 48 | - |
|
| 49 | - Public Overrides Sub ConfigureSettings() |
|
| 50 | 44 | AdHocSettings.ExtendedFunctions = New String() { "[dbo].[SafeDivide]" } |
| 45 | + HttpContext.Current.Session("ReportingInitialized") = True |
|
| 51 | 46 | End Sub |
| 52 | 47 | End Class |
| 53 | 48 | ``` |
| ... | ... | \ No newline at end of file |