InformationModelManagerCreateDefaultInformationModel Method

Spotfire 14.3 API Reference
Creates a default model for the specified meta data items in a data source.

Namespace:  Spotfire.Dxp.Data.InformationModel
Assembly:  Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
public void CreateDefaultInformationModel(
	LibraryItem destinationFolder,
	LibraryItem dataSource,
	IEnumerable<DataSourceItemPath> itemPaths,
	LibraryItemMetadataSettings settings,
	NameConflictStrategy nameConflictStrategy
)

Parameters

destinationFolder
Type: Spotfire.Dxp.Framework.LibraryLibraryItem
The library folder to save the result in.
dataSource
Type: Spotfire.Dxp.Framework.LibraryLibraryItem
The data source in which the itemPaths live.
itemPaths
Type: System.Collections.GenericIEnumerableDataSourceItemPath
The items in the dataSource for which to create a default model.
settings
Type: Spotfire.Dxp.Framework.LibraryLibraryItemMetadataSettings
The metadata that will be applied to each element that is created.
nameConflictStrategy
Type: Spotfire.Dxp.Data.InformationModelNameConflictStrategy
Determines what happens if names of items that are created clashes with existing items in the library.
Exceptions

ExceptionCondition
ArgumentNullException If any of the arguments are null.
ArgumentNullException If any of the paths in itemPaths are null.
ArgumentException If destinationFolder is not a folder.
ArgumentException If dataSource is not a data source.
ArgumentException If itemPaths contains no paths.
ArgumentException If name conflict resolution is not a valid member of that enum.
CanceledException If the user aborts the operation.
InformationModelException If an error occurs in the communication with the server.
Remarks

The method will recursively create a folder structure matching catalogs, schemas etc. it is given. When it finds tables it will create information links containing all the columns in those. Procedures will also get an information link each if they return data. If the operation is aborted either by the user or by an error, anything created so far will remain on the server.
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference