Implementation of the ISdkServiceProvider interface.
Namespace: Ubitsoft.SqlEnlight.SdkAssembly: Ubitsoft.SqlEnlight.Sdk (in Ubitsoft.SqlEnlight.Sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public class SdkServiceProvider : ISdkServiceProvider |
| Visual Basic |
|---|
Public Class SdkServiceProvider _ Implements ISdkServiceProvider |
| Visual C++ |
|---|
public ref class SdkServiceProvider : ISdkServiceProvider |
Remarks
Examples
The following code example demonstrates how to create an instance of the SdkServiceProvider and use its Analysis Service.
CopyC#
// Create instance of the provider class. Ubitsoft.SqlEnlight.Sdk.ISdkServiceProvider sdk = new SdkServiceProvider(); // To generate a XPathNavigator for the context database, just pass a new SqlConnection to the GetContext method. XPathNavigator contextNavigator = sdk.Analysis.GetContext(new SqlConnection("Data Source=.;Integrated Security=true;Initial Catalog=AdventureWorks;"));