Click or drag to resize

MetaSource Class

A MetaSource contains a list of MetaConnection and a MetaData
Inheritance Hierarchy

Namespace:  Seal.Model
Assembly:  SealLibrary (in SealLibrary.dll) Version: 6.1.0.0 (6.1.0.0)
Syntax
public class MetaSource : ReportComponent

The MetaSource type exposes the following members.

Constructors
  NameDescription
Public methodMetaSource
Initializes 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 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 '@'.
Protected propertyProperties
List of properties of the object
(Inherited from RootEditor.)
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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows 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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetOpenConnection
Returns an open DbConnection
Protected methodGetProperty
Get a property descriptor from a property name
(Inherited from RootEditor.)
Public methodGetTableName
Returns a full table name from a raw name
Public methodGetType
Gets 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 methodMemberwiseClone
Creates 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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateEditor
Update editor attributes
(Inherited from RootEditor.)
Protected methodUpdateEditorAttributes (Overrides RootEditorUpdateEditorAttributes.)
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 fieldCategoryFolder
Public fieldConnectionFolder
Public fieldEnumFolder
Public fieldFilePath
Current file path of the source
Public fieldJoinFolder
Public fieldLastModification
Last modification Date Time
Public fieldRepository
Current repository
Public fieldTableFolder
Public fieldTableLinksFolder
Public fieldTag
Object that can be used at run-time for any purpose
Top
See Also