[]
Adds a DataEngine data which data files already exist.
public FlexPivotEngineProviderManager AddDataEngine(string name, string workspace, string tableName)
Type | Name | Description |
---|---|---|
string | name | The unique value used to stand for the data source. |
string | workspace | Path in the server's file system where DataEngine data files locate. |
string | tableName | The name of the DataEngine table. |
Type | Description |
---|---|
FlexPivotEngineProviderManager | The flex pivot engine provider manager. |
Adds a DataEngine data from a database.
public FlexPivotEngineProviderManager AddDataEngine(string name, DbCommand command, DbConnection connection = null, string workspace = null, string tableName = null)
Type | Name | Description |
---|---|---|
string | name | The unique value used to stand for the data source. |
DbCommand | command | ADO.NET command object for retrieving data from the database. The connection in the command should be open. |
DbConnection | connection | An open ADO.NET connection object for connecting to the database. |
string | workspace | Path in the server's file system where DataEngine data is saved in files. If it is set to null or not set, the default workspace is used. The default workspace path is "application base path + /Data". You can change it via the Owin.IAppBuilder.SetDefaultWorkspacePath(string path) method. |
string | tableName | The name of the DataEngine table. If it is set to null or not set, the value of the name parameter is used. |
Type | Description |
---|---|
FlexPivotEngineProviderManager | The flex pivot engine provider manager. |
Adds a DataEngine data from an arbitrary IEnumerable.
public FlexPivotEngineProviderManager AddDataEngine<T>(string name, Func<IEnumerable<T>> dataGetter, string workspace = null, string tableName = null)
Type | Name | Description |
---|---|---|
string | name | The unique value used to stand for the data source. |
Func<IEnumerable<T>> | dataGetter | A function to get an arbitrary IEnumerable. |
string | workspace | Path in the server's file system where DataEngine data is saved in files. If it is set to null or not set, the default workspace is used. The default workspace path is "application base path + /Data". You can change it via the Owin.IAppBuilder.SetDefaultWorkspacePath(string path) method. |
string | tableName | The name of the DataEngine table. If it is set to null or not set, the value of the name parameter is used. |
Type | Description |
---|---|
FlexPivotEngineProviderManager | The flex pivot engine provider manager. |
Name | Description |
---|---|
T |