45144a27ef47d58423ec969c21a1119de488ea3e
Guides/Fusion.md
| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | -#Izenda Fusion |
|
| 1 | +#Izenda Fusion Driver |
|
| 2 | 2 | |
| 3 | 3 | [[_TOC_]] |
| 4 | 4 | |
| ... | ... | @@ -24,8 +24,10 @@ Configuring the Izenda Fusion Driver consists of several steps: |
| 24 | 24 | |
| 25 | 25 | At first you should create FusionDriver object and set up it as default driver for the Izenda AdHoc. Here is example how to do it in C#: |
| 26 | 26 | |
| 27 | +```csharp |
|
| 27 | 28 | FusionDriver fusionDriver = new FusionDriver(); |
| 28 | 29 | AdHocContext.Driver = fusionDriver; |
| 30 | +``` |
|
| 29 | 31 | |
| 30 | 32 | ###2. Add connections to the driver |
| 31 | 33 | |
| ... | ... | @@ -143,3 +145,16 @@ Below is a full example of how to set up and configure the Izenda Fusion Driver |
| 143 | 145 | } |
| 144 | 146 | </script> |
| 145 | 147 | ``` |
| 148 | + |
|
| 149 | +###Customizing the Izenda Fusion driver |
|
| 150 | + |
|
| 151 | +Izenda reports is designed as a modular system to be easily customizable for usage with any datasources. The ``AdHocContext`` class has a **Driver** property containing an instance of ``Izenda.AdHoc.Database.Driver`` inheritor, which provides datasource meta data for AdHoc (Figure 1). |
|
| 152 | + |
|
| 153 | + |
|
| 154 | +**Figure 1:** The driver works directly with your datasources and provides Izenda AdHoc with complete information about tables, fields of tables, data types, etc. |
|
| 155 | + |
|
| 156 | +The ``Izenda.AdHoc.Database.MSSQLDriver`` class implements complete functionality for using MSSQL server as your datasource and also allows you to create inheritors. So the easiest way to create a custom driver working with MSSQL server is to inherit ``Izenda.AdHoc.Database.MSSQLDriver`` and override the functionality you need to work differently. Below is complete instruction on performing this. |
|
| 157 | + |
|
| 158 | +1. Create new project with type of Class library in Visual Studio (Figure 2). |
|
| 159 | + |
|
| 160 | +2. |