InformationModelManager CreateDefaultInformationModel Method TIBCO Spotfire 6.0 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: 13.19.7018.3940 (13.19.7018.3940)
Syntax

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

Parameters

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

ExceptionCondition
System ArgumentNullException If any of the arguments are null.
System ArgumentNullException If any of the paths in itemPaths are null.
System ArgumentException If destinationFolder is not a folder.
System ArgumentException If dataSource is not a data source.
System ArgumentException If itemPaths contains no paths.
System ArgumentException If name conflict resolution is not a valid member of that enum.
Spotfire.Dxp.Framework.ApplicationModel CanceledException If the user aborts the operation.
Spotfire.Dxp.Data.Exceptions 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.
See Also