Click or drag to resize

MetaSource Class

A MetaSource contains a list of MetaConnection and a MetaData
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 MetaSource : ReportComponent

The MetaSource type exposes the following members.

Constructors
 NameDescription
Public methodMetaSourceInitializes a new instance of the MetaSource class
Top
Properties
 NameDescription
Public propertyConnection Current MetaConnection
Public propertyConnectionGUID The connection currently used for this data source
Public propertyConnections List of MetaConnection
Public propertyError Last error message
Public propertyExternalConnections If true, the connections are saved in a XML file located beside the Data Source file.
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
Public propertyInformation Last information message
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.).
Public propertyIsDefault If true, this source is used as default when a new model is created in a report
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.
Public propertyIsSQL If true, this source contains only a table built from a database. The SQL engine will be used to fill the models.
Public propertyMetaData MetaData contained in the source
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 '@'.
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 '@'.
Public propertyReport The current report
(Inherited from ReportComponent)
Top
Methods
 NameDescription
Public methodAddColumn Add a MetaColumn in a MetaTable
Public methodAddColumnsFromCatalog Fill a list of columns from a table catalog
Public methodAddConnection Create a MetaConnection in the source
Public methodAddDefaultConnection Add a default MetaConnection to the source
Public methodAddEnum Add a MetaEnum to the MetaData
Public methodAddJoin Add a MetaJoin to the MetaData
Public methodAddTable Add a MetaTable in the source
Public methodCheckLINQ Check a LINQ statement
Public methodCheckSQL Check a SQL statement, the check includes also all the Pre/Post SQL statements defined.
Public methodStatic memberCreate Create a basic MetaSource
Public methodCreateEnumFromColumn Helper to create a MetaEnum for a given MetaColumn
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
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetOpenConnection Returns an open DbConnection
Public methodGetTableName Returns a full table name from a raw name
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
Public methodStatic memberLoadFromFile Load the MetaSource from a file
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRefresh Refresh all tables having dynamic columns and needed a refresh
Public methodRemoveConnection Remove a MetaConnection from the source
Public methodRemoveEnum Remove a MetaEnum from the MetaData
Public methodRemoveJoin Remove a MetaJoin from the MetaData
Public methodRemoveTable Remove a MetaTable from the source
Public methodRemoveTableLink Remove a MetaTableLink from the source
Public methodSaveToFile Save to the current file
Public methodSaveToFile(String) Save to a file
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 
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 fieldFilePath Current file path of the source
Public fieldLastMetadataModification Last modification Date Time of the Metadata (used for optimization)
Public fieldLastModification Last modification Date Time
Public fieldRepository Current repository
Public fieldTag Object that can be used at run-time for any purpose
Top
See Also