C# 클래스 nHydrate.Generator.Models.Table

상속: nHydrate.Generator.Common.GeneratorFramework.BaseModelObject, ICodeFacadeObject, INamedObject
파일 보기 프로젝트 열기: nHydrate/nHydrate 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_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

프로퍼티 타입 설명
DoesBaseAllowTableAudit bool
GetAbsoluteBaseTable Table
GetBasePKColumn Column
GetBasePKColumnList IEnumerable
PostLoad void

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
CreateDataTable ( ) : System.Data.DataTable

비공개 메소드들

메소드 설명
DoesBaseAllowTableAudit ( ) : bool
GetAbsoluteBaseTable ( ) : Table
GetBasePKColumn ( Column column ) : Column
GetBasePKColumnList ( ) : IEnumerable
PostLoad ( ) : void

메소드 상세

CanInherit() 공개 메소드

Determines if the specified table can be a parent of this table
public CanInherit ( Table parentTable ) : bool
parentTable Table
리턴 bool

CreateDataTable() 보호된 메소드

protected CreateDataTable ( ) : System.Data.DataTable
리턴 System.Data.DataTable

CreateRef() 공개 메소드

public CreateRef ( ) : Reference
리턴 Reference

CreateRef() 공개 메소드

public CreateRef ( string key ) : Reference
key string
리턴 Reference

FullHierarchyPrimaryKeyIsDatabaseIdentity() 공개 메소드

public FullHierarchyPrimaryKeyIsDatabaseIdentity ( ) : bool
리턴 bool

GetChildRoleRelationsFullHierarchy() 공개 메소드

Get all relations where this table or any derived table is the child
public GetChildRoleRelationsFullHierarchy ( ) : IEnumerable
리턴 IEnumerable

GetCodeFacade() 공개 메소드

public GetCodeFacade ( ) : string
리턴 string

GetColumnInRelationships() 공개 메소드

public GetColumnInRelationships ( ) : ColumnCollection
리턴 ColumnCollection

GetColumnNotInRelationships() 공개 메소드

public GetColumnNotInRelationships ( ) : IEnumerable
리턴 IEnumerable

GetColumns() 공개 메소드

Returns the columns for this table only (not hierarchy)
public GetColumns ( ) : IEnumerable
리턴 IEnumerable

GetColumnsByType() 공개 메소드

public GetColumnsByType ( System type ) : IEnumerable
type System
리턴 IEnumerable

GetColumnsFullHierarchy() 공개 메소드

This gets all columns from this and all base classes
public GetColumnsFullHierarchy ( ) : ColumnCollection
리턴 ColumnCollection

GetColumnsFullHierarchy() 공개 메소드

This gets all columns from this and all base classes
public GetColumnsFullHierarchy ( bool includeCurrent ) : ColumnCollection
includeCurrent bool
리턴 ColumnCollection

GetColumnsNotInBase() 공개 메소드

This gets all columns in this class NOT in a base class
public GetColumnsNotInBase ( ) : ColumnCollection
리턴 ColumnCollection

GetForeignKeyColumns() 공개 메소드

public GetForeignKeyColumns ( ) : IEnumerable
리턴 IEnumerable

GetFullHierarchyTableJoin() 공개 메소드

public GetFullHierarchyTableJoin ( ) : string
리턴 string

GetFullHierarchyTableJoin() 공개 메소드

public GetFullHierarchyTableJoin ( bool useLinqAlias ) : string
useLinqAlias bool
리턴 string

GetParentRoleRelationsFullHierarchy() 공개 메소드

Get all relations where this table or any derived table is the parent
public GetParentRoleRelationsFullHierarchy ( ) : IEnumerable
리턴 IEnumerable

GetParentTables() 공개 메소드

public GetParentTables ( ) : IEnumerable
리턴 IEnumerable

GetRelatedTypeTableByColumn() 공개 메소드

public GetRelatedTypeTableByColumn ( Column column, bool fullHierarchy, string &roleName ) : Table
column Column
fullHierarchy bool
roleName string
리턴 Table

GetRelatedTypeTableByColumn() 공개 메소드

public GetRelatedTypeTableByColumn ( Column column, string &roleName ) : Table
column Column
roleName string
리턴 Table

GetRelations() 공개 메소드

Returns a list of generated relations for this table
public GetRelations ( ) : RelationCollection
리턴 RelationCollection

GetRelationsFullHierarchy() 공개 메소드

public GetRelationsFullHierarchy ( ) : IEnumerable
리턴 IEnumerable

GetRelationsWhereChild() 공개 메소드

Returns generated relations for this table
public GetRelationsWhereChild ( bool fullHierarchy = false ) : IEnumerable
fullHierarchy bool
리턴 IEnumerable

GetSQLSchema() 공개 메소드

public GetSQLSchema ( ) : string
리턴 string

GetTableComponentsFullHierarchy() 공개 메소드

This gets all table components from this and all base classes
public GetTableComponentsFullHierarchy ( bool includeCurrent ) : IEnumerable
includeCurrent bool
리턴 IEnumerable

GetTableCompositesFullHierarchy() 공개 메소드

This gets all table composites from this and all base classes
public GetTableCompositesFullHierarchy ( bool includeCurrent ) : IEnumerable
includeCurrent bool
리턴 IEnumerable

GetTableHierarchy() 공개 메소드

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

GetTablesInheritedFromHierarchy() 공개 메소드

Get all the tables that are descendants of this table
public GetTablesInheritedFromHierarchy ( ) : IEnumerable
리턴 IEnumerable

GetViewRelations() 공개 메소드

Returns a list of generated relations for this table to views
public GetViewRelations ( ) : ViewRelationCollection
리턴 ViewRelationCollection

IsColumnInherited() 공개 메소드

public IsColumnInherited ( Column column ) : bool
column Column
리턴 bool

IsColumnRelatedToTypeTable() 공개 메소드

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
리턴 bool

IsInheritedFrom() 공개 메소드

Determines if the specified table is an ancestor of the this table object
public IsInheritedFrom ( Table table ) : bool
table Table
리턴 bool

PropertyExistsInBase() 공개 메소드

public PropertyExistsInBase ( string columnName ) : bool
columnName string
리턴 bool

ResetId() 공개 메소드

public ResetId ( int newId ) : void
newId int
리턴 void

ShareAncestor() 공개 메소드

Determines if this table shares a common ancestor with the specified table
public ShareAncestor ( Table table ) : bool
table Table
리턴 bool

Table() 공개 메소드

public Table ( INHydrateModelObject root ) : System
root INHydrateModelObject
리턴 System

ToDatabaseCodeIdentifier() 공개 메소드

Create a valid T-SQL variable from the name
public ToDatabaseCodeIdentifier ( ) : string
리턴 string

ToDatabaseIdentifier() 공개 메소드

public ToDatabaseIdentifier ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

XmlAppend() 공개 메소드

public XmlAppend ( XmlNode node ) : void
node XmlNode
리턴 void

XmlLoad() 공개 메소드

public XmlLoad ( XmlNode node ) : void
node XmlNode
리턴 void

프로퍼티 상세

_allowTimestamp 보호되어 있는 프로퍼티

protected bool _allowTimestamp
리턴 bool

_associativeTable 보호되어 있는 프로퍼티

protected bool _associativeTable
리턴 bool

_codeFacade 보호되어 있는 프로퍼티

protected string _codeFacade
리턴 string

_columns 보호되어 있는 프로퍼티

protected ReferenceCollection _columns
리턴 ReferenceCollection

_createAudit 보호되어 있는 프로퍼티

protected bool _createAudit
리턴 bool

_createMetaData 보호되어 있는 프로퍼티

protected bool _createMetaData
리턴 bool

_customRetrieveRules 보호되어 있는 프로퍼티

protected ReferenceCollection _customRetrieveRules
리턴 ReferenceCollection

_description 보호되어 있는 프로퍼티

protected string _description
리턴 string

_fullIndexSearch 보호되어 있는 프로퍼티

protected bool _fullIndexSearch
리턴 bool

_generated 보호되어 있는 프로퍼티

protected bool _generated
리턴 bool

_hasHistory 보호되어 있는 프로퍼티

protected bool _hasHistory
리턴 bool

_id 보호되어 있는 프로퍼티

protected int _id
리턴 int

_isTypeTable 보호되어 있는 프로퍼티

protected TypedTableConstants _isTypeTable
리턴 TypedTableConstants

_modifiedAudit 보호되어 있는 프로퍼티

protected bool _modifiedAudit
리턴 bool

_name 보호되어 있는 프로퍼티

protected string _name
리턴 string

_relationships 보호되어 있는 프로퍼티

protected ReferenceCollection _relationships
리턴 ReferenceCollection

_staticData 보호되어 있는 프로퍼티

protected RowEntryCollection _staticData
리턴 RowEntryCollection

_tableIndexList 보호되어 있는 프로퍼티

protected List _tableIndexList
리턴 List

_viewRelationships 보호되어 있는 프로퍼티

protected ReferenceCollection _viewRelationships
리턴 ReferenceCollection