Click or drag to resize

ReportSource Class

A ReportSource is a MetaSource dedicated for report executions
Inheritance Hierarchy
SystemObject
  Seal.ModelRootEditor
    Seal.ModelRootComponent
      Seal.ModelReportComponent
        Seal.ModelMetaSource
          Seal.ModelReportSource

Namespace: Seal.Model
Assembly: SealLibrary (in SealLibrary.dll) Version: 8.1.0.0+4fe7975a95558d7cdf0d4c425e2c3a22827d67dd
Syntax
C#
public class ReportSource : MetaSource

The ReportSource type exposes the following members.

Constructors
 NameDescription
Public methodReportSourceInitializes a new instance of the ReportSource class
Top
Properties
 NameDescription
Public propertyConnection Current connection
(Overrides MetaSourceConnection)
Public propertyConnectionGUID The connection currently used for this data source
(Inherited from MetaSource)
Public propertyConnections List of MetaConnection
(Inherited from MetaSource)
Public propertyError Last error message
(Inherited from MetaSource)
Public propertyExternalConnections If true, the connections are saved in a XML file located beside the Data Source file.
(Inherited from MetaSource)
Public propertyForceLoad For performance reasons, the source is not loaded during execution if it is not involved in the report (in models, tasks, etc.). Set this flag to true to force the load anyway and use the source in scripts.
Public propertyGUID The unique identifier
(Inherited from RootComponent)
Public propertyIgnorePrePostError If true, errors occuring during the Pre or Post SQL statements are ignored and the execution continues
(Inherited from MetaSource)
Public propertyInformation Last information message
(Inherited from MetaSource)
Public propertyInitScript If set, the script is executed when a report is initialized for an execution. This may be useful to change dynamically components of the source (e.g. modifying connections, tables, columns, enums, etc.).
(Inherited from MetaSource)
Public propertyIsDefault If true, this source is used as default when a new model is created in a report
(Inherited from MetaSource)
Public propertyIsNoSQL If true, this source contains only tables built from dedicated Razor Scripts (one for the definition and one for the load). The a LINQ query will then be used to fill the models.
(Inherited from MetaSource)
Public propertyIsSQL If true, this source contains only a table built from a database. The SQL engine will be used to fill the models.
(Inherited from MetaSource)
Public propertyMetaData MetaData contained in the source
(Inherited from MetaSource)
Public propertyMetaSourceGUID Unique identifier of the source
Public propertyMetaSourceName Name
Public propertyName The name
(Inherited from RootComponent)
Public propertyPostSQL SQL Statement executed before the connection is closed and after the query is executed. The statement may contain Razor script if it starts with '@'.
(Inherited from MetaSource)
Public propertyPreSQL SQL Statement executed after the connection is open and before the query is executed. The statement may contain Razor script if it starts with '@'.
(Inherited from MetaSource)
Public propertyReport The current report
(Inherited from ReportComponent)
Public propertyRepositoryConnection Reference to the default repository connection
Top
Methods
 NameDescription
Public methodAddColumn Add a MetaColumn in a MetaTable
(Inherited from MetaSource)
Public methodAddColumnsFromCatalog Fill a list of columns from a table catalog
(Inherited from MetaSource)
Public methodAddConnection Create a MetaConnection in the source
(Inherited from MetaSource)
Public methodAddDefaultConnection Add a default MetaConnection to the source
(Inherited from MetaSource)
Public methodAddEnum Add a MetaEnum to the MetaData
(Inherited from MetaSource)
Public methodAddJoin Add a MetaJoin to the MetaData
(Inherited from MetaSource)
Public methodAddTable Add a MetaTable in the source
(Inherited from MetaSource)
Public methodCheckLINQ Check a LINQ statement
(Inherited from MetaSource)
Public methodCheckSQL Check a SQL statement, the check includes also all the Pre/Post SQL statements defined.
(Inherited from MetaSource)
Public methodStatic memberCreate Creates a basic ReportSource
Public methodCreateEnumFromColumn Helper to create a MetaEnum for a given MetaColumn
(Inherited from MetaSource)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetColumnName Returns a full column name from a raw name
(Inherited from MetaSource)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetOpenConnection Returns an open DbConnection
(Inherited from MetaSource)
Public methodGetTableName Returns a full table name from a raw name
(Inherited from MetaSource)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInit Init the editor objects
(Inherited from RootEditor)
Public methodInitDefaultValues Init the default values
(Inherited from RootEditor)
Public methodInitEditor Init the editor objects and the default values
(Inherited from RootEditor)
Public methodInitReferences Init all object references
(Inherited from MetaSource)
Public methodLoadRepositoryMetaSources Load the available MetaSources defined in the repository
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRefresh Refresh all tables having dynamic columns and needed a refresh
(Inherited from MetaSource)
Public methodRefreshEnumsOnDbConnection Refresh the enumerated list values
Public methodRemoveConnection Remove a MetaConnection from the source
(Inherited from MetaSource)
Public methodRemoveEnum Remove a MetaEnum from the MetaData
(Inherited from MetaSource)
Public methodRemoveJoin Remove a MetaJoin from the MetaData
(Inherited from MetaSource)
Public methodRemoveTable Remove a MetaTable from the source
(Inherited from MetaSource)
Public methodRemoveTableLink Remove a MetaTableLink from the source
(Inherited from MetaSource)
Public methodSaveToFile Save to the current file
(Inherited from MetaSource)
Public methodSaveToFile(String) Save to a file
(Inherited from MetaSource)
Public methodSetReadOnly Set all properties to readonly
(Inherited from RootEditor)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpdateEditor Update editor attributes
(Inherited from RootEditor)
Protected methodUpdateEditorAttributes Refresh properties attrivutes
(Inherited from RootEditor)
Top
Fields
 NameDescription
Protected field_connectionGUID
(Inherited from MetaSource)
Protected field_dctd
(Inherited from RootEditor)
Protected field_GUID
(Inherited from RootComponent)
Protected field_name
(Inherited from RootComponent)
Protected field_report
(Inherited from ReportComponent)
Public fieldStatic memberDefaultReportConnectionGUID 
Public fieldStatic memberDefaultRepositoryConnectionGUID 
Public fieldFilePath Current file path of the source
(Inherited from MetaSource)
Public fieldLastMetadataModification Last modification Date Time of the Metadata (used for optimization)
(Inherited from MetaSource)
Public fieldLastModification Last modification Date Time
(Inherited from MetaSource)
Public fieldLoaded True if the source has been initialized from the repository
Public fieldRepository Current repository
(Inherited from MetaSource)
Public fieldTag Object that can be used at run-time for any purpose
(Inherited from MetaSource)
Public fieldTempConnections 
Public fieldTempEnums 
Public fieldTempJoins 
Public fieldTempLinks 
Public fieldTempTables 
Top
See Also