C# Class nHydrate.Generator.Models.Table

Inheritance: nHydrate.Generator.Common.GeneratorFramework.BaseModelObject, ICodeFacadeObject, INamedObject
Afficher le fichier Open project: nHydrate/nHydrate Class Usage Examples

Protected Properties

Свойство Type Description
_allowTimestamp bool
_associativeTable bool
_codeFacade string
_columns ReferenceCollection
_createAudit bool
_createMetaData bool
_customRetrieveRules ReferenceCollection
_description string
_fullIndexSearch bool
_generated bool
_hasHistory bool
_id int
_isTypeTable TypedTableConstants
_modifiedAudit bool
_name string
_relationships ReferenceCollection
_staticData RowEntryCollection
_tableIndexList List
_viewRelationships ReferenceCollection

Private Properties

Свойство Type Description
DoesBaseAllowTableAudit bool
GetAbsoluteBaseTable Table
GetBasePKColumn Column
GetBasePKColumnList IEnumerable
PostLoad void

Méthodes publiques

Méthode Description
CanInherit ( Table parentTable ) : bool

Determines if the specified table can be a parent of this table

CreateRef ( ) : Reference
CreateRef ( string key ) : Reference
FullHierarchyPrimaryKeyIsDatabaseIdentity ( ) : bool
GetChildRoleRelationsFullHierarchy ( ) : IEnumerable

Get all relations where this table or any derived table is the child

GetCodeFacade ( ) : string
GetColumnInRelationships ( ) : ColumnCollection
GetColumnNotInRelationships ( ) : IEnumerable
GetColumns ( ) : IEnumerable

Returns the columns for this table only (not hierarchy)

GetColumnsByType ( System type ) : IEnumerable
GetColumnsFullHierarchy ( ) : ColumnCollection

This gets all columns from this and all base classes

GetColumnsFullHierarchy ( bool includeCurrent ) : ColumnCollection

This gets all columns from this and all base classes

GetColumnsNotInBase ( ) : ColumnCollection

This gets all columns in this class NOT in a base class

GetForeignKeyColumns ( ) : IEnumerable
GetFullHierarchyTableJoin ( ) : string
GetFullHierarchyTableJoin ( bool useLinqAlias ) : string
GetParentRoleRelationsFullHierarchy ( ) : IEnumerable

Get all relations where this table or any derived table is the parent

GetParentTables ( ) : IEnumerable
GetRelatedTypeTableByColumn ( Column column, bool fullHierarchy, string &roleName ) : Table
GetRelatedTypeTableByColumn ( Column column, string &roleName ) : Table
GetRelations ( ) : RelationCollection

Returns a list of generated relations for this table

GetRelationsFullHierarchy ( ) : IEnumerable
GetRelationsWhereChild ( bool fullHierarchy = false ) : IEnumerable

Returns generated relations for this table

GetSQLSchema ( ) : string
GetTableComponentsFullHierarchy ( bool includeCurrent ) : IEnumerable

This gets all table components from this and all base classes

GetTableCompositesFullHierarchy ( bool includeCurrent ) : IEnumerable

This gets all table composites from this and all base classes

GetTableHierarchy ( ) : IEnumerable

Get the full hierarchy of tables starting with this table and working back to the most base table

GetTablesInheritedFromHierarchy ( ) : IEnumerable

Get all the tables that are descendants of this table

GetViewRelations ( ) : ViewRelationCollection

Returns a list of generated relations for this table to views

IsColumnInherited ( Column column ) : bool
IsColumnRelatedToTypeTable ( Column column, string &roleName ) : bool

Given a column in this table, determines if there is a relation to a type table based on it

IsInheritedFrom ( Table table ) : bool

Determines if the specified table is an ancestor of the this table object

PropertyExistsInBase ( string columnName ) : bool
ResetId ( int newId ) : void
ShareAncestor ( Table table ) : bool

Determines if this table shares a common ancestor with the specified table

Table ( INHydrateModelObject root ) : System
ToDatabaseCodeIdentifier ( ) : string

Create a valid T-SQL variable from the name

ToDatabaseIdentifier ( ) : string
ToString ( ) : string
XmlAppend ( XmlNode node ) : void
XmlLoad ( XmlNode node ) : void

Méthodes protégées

Méthode Description
CreateDataTable ( ) : System.Data.DataTable

Private Methods

Méthode Description
DoesBaseAllowTableAudit ( ) : bool
GetAbsoluteBaseTable ( ) : Table
GetBasePKColumn ( Column column ) : Column
GetBasePKColumnList ( ) : IEnumerable
PostLoad ( ) : void

Method Details

CanInherit() public méthode

Determines if the specified table can be a parent of this table
public CanInherit ( Table parentTable ) : bool
parentTable Table
Résultat bool

CreateDataTable() protected méthode

protected CreateDataTable ( ) : System.Data.DataTable
Résultat System.Data.DataTable

CreateRef() public méthode

public CreateRef ( ) : Reference
Résultat Reference

CreateRef() public méthode

public CreateRef ( string key ) : Reference
key string
Résultat Reference

FullHierarchyPrimaryKeyIsDatabaseIdentity() public méthode

public FullHierarchyPrimaryKeyIsDatabaseIdentity ( ) : bool
Résultat bool

GetChildRoleRelationsFullHierarchy() public méthode

Get all relations where this table or any derived table is the child
public GetChildRoleRelationsFullHierarchy ( ) : IEnumerable
Résultat IEnumerable

GetCodeFacade() public méthode

public GetCodeFacade ( ) : string
Résultat string

GetColumnInRelationships() public méthode

public GetColumnInRelationships ( ) : ColumnCollection
Résultat ColumnCollection

GetColumnNotInRelationships() public méthode

public GetColumnNotInRelationships ( ) : IEnumerable
Résultat IEnumerable

GetColumns() public méthode

Returns the columns for this table only (not hierarchy)
public GetColumns ( ) : IEnumerable
Résultat IEnumerable

GetColumnsByType() public méthode

public GetColumnsByType ( System type ) : IEnumerable
type System
Résultat IEnumerable

GetColumnsFullHierarchy() public méthode

This gets all columns from this and all base classes
public GetColumnsFullHierarchy ( ) : ColumnCollection
Résultat ColumnCollection

GetColumnsFullHierarchy() public méthode

This gets all columns from this and all base classes
public GetColumnsFullHierarchy ( bool includeCurrent ) : ColumnCollection
includeCurrent bool
Résultat ColumnCollection

GetColumnsNotInBase() public méthode

This gets all columns in this class NOT in a base class
public GetColumnsNotInBase ( ) : ColumnCollection
Résultat ColumnCollection

GetForeignKeyColumns() public méthode

public GetForeignKeyColumns ( ) : IEnumerable
Résultat IEnumerable

GetFullHierarchyTableJoin() public méthode

public GetFullHierarchyTableJoin ( ) : string
Résultat string

GetFullHierarchyTableJoin() public méthode

public GetFullHierarchyTableJoin ( bool useLinqAlias ) : string
useLinqAlias bool
Résultat string

GetParentRoleRelationsFullHierarchy() public méthode

Get all relations where this table or any derived table is the parent
public GetParentRoleRelationsFullHierarchy ( ) : IEnumerable
Résultat IEnumerable

GetParentTables() public méthode

public GetParentTables ( ) : IEnumerable
Résultat IEnumerable

GetRelatedTypeTableByColumn() public méthode

public GetRelatedTypeTableByColumn ( Column column, bool fullHierarchy, string &roleName ) : Table
column Column
fullHierarchy bool
roleName string
Résultat Table

GetRelatedTypeTableByColumn() public méthode

public GetRelatedTypeTableByColumn ( Column column, string &roleName ) : Table
column Column
roleName string
Résultat Table

GetRelations() public méthode

Returns a list of generated relations for this table
public GetRelations ( ) : RelationCollection
Résultat RelationCollection

GetRelationsFullHierarchy() public méthode

public GetRelationsFullHierarchy ( ) : IEnumerable
Résultat IEnumerable

GetRelationsWhereChild() public méthode

Returns generated relations for this table
public GetRelationsWhereChild ( bool fullHierarchy = false ) : IEnumerable
fullHierarchy bool
Résultat IEnumerable

GetSQLSchema() public méthode

public GetSQLSchema ( ) : string
Résultat string

GetTableComponentsFullHierarchy() public méthode

This gets all table components from this and all base classes
public GetTableComponentsFullHierarchy ( bool includeCurrent ) : IEnumerable
includeCurrent bool
Résultat IEnumerable

GetTableCompositesFullHierarchy() public méthode

This gets all table composites from this and all base classes
public GetTableCompositesFullHierarchy ( bool includeCurrent ) : IEnumerable
includeCurrent bool
Résultat IEnumerable

GetTableHierarchy() public méthode

Get the full hierarchy of tables starting with this table and working back to the most base table
public GetTableHierarchy ( ) : IEnumerable
Résultat IEnumerable

GetTablesInheritedFromHierarchy() public méthode

Get all the tables that are descendants of this table
public GetTablesInheritedFromHierarchy ( ) : IEnumerable
Résultat IEnumerable

GetViewRelations() public méthode

Returns a list of generated relations for this table to views
public GetViewRelations ( ) : ViewRelationCollection
Résultat ViewRelationCollection

IsColumnInherited() public méthode

public IsColumnInherited ( Column column ) : bool
column Column
Résultat bool

IsColumnRelatedToTypeTable() public méthode

Given a column in this table, determines if there is a relation to a type table based on it
public IsColumnRelatedToTypeTable ( Column column, string &roleName ) : bool
column Column
roleName string
Résultat bool

IsInheritedFrom() public méthode

Determines if the specified table is an ancestor of the this table object
public IsInheritedFrom ( Table table ) : bool
table Table
Résultat bool

PropertyExistsInBase() public méthode

public PropertyExistsInBase ( string columnName ) : bool
columnName string
Résultat bool

ResetId() public méthode

public ResetId ( int newId ) : void
newId int
Résultat void

ShareAncestor() public méthode

Determines if this table shares a common ancestor with the specified table
public ShareAncestor ( Table table ) : bool
table Table
Résultat bool

Table() public méthode

public Table ( INHydrateModelObject root ) : System
root INHydrateModelObject
Résultat System

ToDatabaseCodeIdentifier() public méthode

Create a valid T-SQL variable from the name
public ToDatabaseCodeIdentifier ( ) : string
Résultat string

ToDatabaseIdentifier() public méthode

public ToDatabaseIdentifier ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string

XmlAppend() public méthode

public XmlAppend ( XmlNode node ) : void
node XmlNode
Résultat void

XmlLoad() public méthode

public XmlLoad ( XmlNode node ) : void
node XmlNode
Résultat void

Property Details

_allowTimestamp protected_oe property

protected bool _allowTimestamp
Résultat bool

_associativeTable protected_oe property

protected bool _associativeTable
Résultat bool

_codeFacade protected_oe property

protected string _codeFacade
Résultat string

_columns protected_oe property

protected ReferenceCollection _columns
Résultat ReferenceCollection

_createAudit protected_oe property

protected bool _createAudit
Résultat bool

_createMetaData protected_oe property

protected bool _createMetaData
Résultat bool

_customRetrieveRules protected_oe property

protected ReferenceCollection _customRetrieveRules
Résultat ReferenceCollection

_description protected_oe property

protected string _description
Résultat string

_fullIndexSearch protected_oe property

protected bool _fullIndexSearch
Résultat bool

_generated protected_oe property

protected bool _generated
Résultat bool

_hasHistory protected_oe property

protected bool _hasHistory
Résultat bool

_id protected_oe property

protected int _id
Résultat int

_isTypeTable protected_oe property

protected TypedTableConstants _isTypeTable
Résultat TypedTableConstants

_modifiedAudit protected_oe property

protected bool _modifiedAudit
Résultat bool

_name protected_oe property

protected string _name
Résultat string

_relationships protected_oe property

protected ReferenceCollection _relationships
Résultat ReferenceCollection

_staticData protected_oe property

protected RowEntryCollection _staticData
Résultat RowEntryCollection

_tableIndexList protected_oe property

protected List _tableIndexList
Résultat List

_viewRelationships protected_oe property

protected ReferenceCollection _viewRelationships
Résultat ReferenceCollection