C# Class nHydrate.Dsl.Entity

Inheritance: nHydrate.Dsl.IModuleLink, nHydrate.Dsl.IDatabaseEntity, nHydrate.Dsl.IFieldContainer
ファイルを表示 Open project: nHydrate/nHydrate Class Usage Examples

Private Properties

Property Type Description
Validate void
ValidateFields void

Public Methods

Method Description
GetBasePKColumn ( Field column ) : Field

Given a field from this table a search is performed to get the same column from the base table if one exists

GetBasePKColumnList ( ) : IEnumerable

Returns all primary keys from the ultimate ancestor in the table hierarchy

GetBasePKColumnList ( Field column ) : IEnumerable

Given a field from this table a search is performed to get the same column from all base tables down the inheritance hierarchy

GetColumnsFullHierarchy ( ) : IEnumerable

This gets all columns from this and all base classes

GetColumnsFullHierarchy ( bool includeCurrent ) : IEnumerable

This gets all columns from this and all base classes

GetRelationsFullHierarchy ( ) : IEnumerable
GetRelationsWhereChild ( ) : IEnumerable

Returns generated relations for this table

GetRelationsWhereChild ( bool fullHierarchy ) : IEnumerable

Returns generated relations for this table

GetTableHierarchy ( ) : IEnumerable

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

IModuleLink ( Module module ) : void
IsInheritedFrom ( Entity entity ) : bool

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

ToString ( ) : string

Protected Methods

Method Description
OnCopy ( global::Microsoft.VisualStudio.Modeling sourceElement ) : void
OnDeleting ( ) : void

Private Methods

Method Description
Validate ( ValidationContext context ) : void
ValidateFields ( ValidationContext context ) : void

Method Details

GetBasePKColumn() public method

Given a field from this table a search is performed to get the same column from the base table if one exists
public GetBasePKColumn ( Field column ) : Field
column Field
return Field

GetBasePKColumnList() public method

Returns all primary keys from the ultimate ancestor in the table hierarchy
public GetBasePKColumnList ( ) : IEnumerable
return IEnumerable

GetBasePKColumnList() public method

Given a field from this table a search is performed to get the same column from all base tables down the inheritance hierarchy
public GetBasePKColumnList ( Field column ) : IEnumerable
column Field
return IEnumerable

GetColumnsFullHierarchy() public method

This gets all columns from this and all base classes
public GetColumnsFullHierarchy ( ) : IEnumerable
return IEnumerable

GetColumnsFullHierarchy() public method

This gets all columns from this and all base classes
public GetColumnsFullHierarchy ( bool includeCurrent ) : IEnumerable
includeCurrent bool
return IEnumerable

GetRelationsFullHierarchy() public method

public GetRelationsFullHierarchy ( ) : IEnumerable
return IEnumerable

GetRelationsWhereChild() public method

Returns generated relations for this table
public GetRelationsWhereChild ( ) : IEnumerable
return IEnumerable

GetRelationsWhereChild() public method

Returns generated relations for this table
public GetRelationsWhereChild ( bool fullHierarchy ) : IEnumerable
fullHierarchy bool
return IEnumerable

GetTableHierarchy() public method

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

IModuleLink() public method

public IModuleLink ( Module module ) : void
module Module
return void

IsInheritedFrom() public method

Determines if the specified table is an ancestor of the this table object
public IsInheritedFrom ( Entity entity ) : bool
entity Entity
return bool

OnCopy() protected method

protected OnCopy ( global::Microsoft.VisualStudio.Modeling sourceElement ) : void
sourceElement global::Microsoft.VisualStudio.Modeling
return void

OnDeleting() protected method

protected OnDeleting ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string