ReportingService2005.GenerateModel Method (String, String, String, Property)
Generates a default model on top of a shared data source.
Assembly: ReportService2005 (in ReportService2005.dll)
public Warning GenerateModel( string DataSource, string Model, string Parent, Property Properties )
The path to a shared data source on the server from which to generate the model.
The name of the model to create.
Full name of the folder under which to add the new model.
XML that defines properties to set on the model and values to set them to.
The top-level element is Properties.
The table below shows header and permissions information on this operation.
The report server sets the IsGenerated property on the generated model whenis called.
Models are generated using the credentials specified in the shared data source. As a result, two different users can generate different models from the same data source. Note that when a shared data source is configured to store credentials in the report server,always impersonates the user whose credentials are stored, even if the shared data source is configured to impersonate the currently authenticated user.
When the model is created, the default model item security is applied to the nodes in the model.
When the model definition is generated, custom properties stored in the model definition are propagated as custom properties on the model item in the folder namespace, and new custom property values overwrite existing custom property values.