Class TableConfig

Represent complex table config information.

Inheritance
System.Object
TableConfig
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data.Sql.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 10.8.0
Syntax
public class TableConfig
Remarks

The TableConfig class combines information about primary, extended and joinded tables, computed columns and sub table config. The meta class uses table config to create SQL query.

Constructors

TableConfig()

Initializes a new instance of the McTableConfig class.

Declaration
public TableConfig()

TableConfig(Table)

Initializes a new instance of the McTableConfig class.

Declaration
public TableConfig(Table primaryTable)
Parameters
Type Name Description
Table primaryTable

The primary table.

TableConfig(Table, Table[])

Initializes a new instance of the McTableConfig class.

Declaration
public TableConfig(Table primaryTable, params Table[] extendedTables)
Parameters
Type Name Description
Table primaryTable

The primary table.

Table[] extendedTables

The extended tables.

TableConfig(Table, Table[], JoinedTable[])

Initializes a new instance of the McTableConfig class.

Declaration
public TableConfig(Table primaryTable, Table[] extendedTables, JoinedTable[] joinedTables)
Parameters
Type Name Description
Table primaryTable

The primary table.

Table[] extendedTables

The extended tables.

JoinedTable[] joinedTables

The joined tables.

Properties

ComputedColumns

Gets the computed columns.

Declaration
public List<ComputedColumn> ComputedColumns { get; }
Property Value
Type Description
System.Collections.Generic.List<ComputedColumn>

The computed columns.

Extended

Gets the extended.

Declaration
public List<Table> Extended { get; }
Property Value
Type Description
System.Collections.Generic.List<Table>

The extended.

Joined

Gets the joined.

Declaration
public List<JoinedTable> Joined { get; }
Property Value
Type Description
System.Collections.Generic.List<JoinedTable>

The joined.

Owner

Gets or sets the owner.

Declaration
public object Owner { get; set; }
Property Value
Type Description
System.Object

The owner.

Primary

Gets or sets the primary.

Declaration
public Table Primary { get; set; }
Property Value
Type Description
Table

The primary.

SubConfigs

Gets the sub configs.

Declaration
public List<SubTableConfig> SubConfigs { get; }
Property Value
Type Description
System.Collections.Generic.List<SubTableConfig>

The sub configs.

Methods

GetSubConfig(String)

Gets the sub configs.

Declaration
public SubTableConfig GetSubConfig(string prefix)
Parameters
Type Name Description
System.String prefix

The prefix.

Returns
Type Description
SubTableConfig