db6359df9e6ff82ac43a930af0ae79e1e61eaf42
Guides/Izenda-AdHoc-Driver.md
| ... | ... | @@ -127,13 +127,16 @@ Izenda.Fusion.FusionDriver.AddODataConnection("OD", @"http://...aspx"); |
| 127 | 127 | You can use the FusionDriver to add multiple indirect database connections to your Driver's context: |
| 128 | 128 | |
| 129 | 129 | ```csharp |
| 130 | -//only for direct connections |
|
| 130 | +<%@ Import Namespace = "Izenda.Fusion" %> |
|
| 131 | +//Add the above to your Namespaces. Everything below should be placed within Initialize Reporting. |
|
| 132 | + |
|
| 131 | 133 | //AdHocSettings.SqlServerConnectionString = "my_direct_connection_string"; |
| 134 | +//Use the above for direct connections |
|
| 132 | 135 | Izenda.Fusion.FusionDriver fd = new Izenda.Fusion.FusionDriver(); |
| 133 | 136 | fd.AddConnection("SqlNW", Izenda.Fusion.FusionConnectionType.MsSql, @"http://url_to_sql_connector.com/provider_endpoint.aspx"); |
| 134 | 137 | fd.AddConnection("OD", Izenda.Fusion.FusionConnectionType.OData, @"http://url_to_odata_connector.com/provider_endpoint.aspx"); |
| 135 | 138 | fd.AddConnection("OD2", Izenda.Fusion.FusionConnectionType.OData, @"http://url_to_odata_2_connector.com/provider_endpoint.aspx"); |
| 136 | -AdHocSettings.AdHocContext.Driver = fd; |
|
| 139 | +AdHocContext.Driver = fd; |
|
| 137 | 140 | ``` |
| 138 | 141 | |
| 139 | 142 | ####3. Set up additional settings |