C# Class nHydrate.Dsl.Entity

Inheritance: nHydrate.Dsl.IModuleLink, nHydrate.Dsl.IDatabaseEntity, nHydrate.Dsl.IFieldContainer
Afficher le fichier Open project: nHydrate/nHydrate Class Usage Examples

Private Properties

Свойство Type Description
Validate void
ValidateFields void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnCopy ( global::Microsoft.VisualStudio.Modeling sourceElement ) : void
OnDeleting ( ) : void

Private Methods

Méthode Description
Validate ( ValidationContext context ) : void
ValidateFields ( ValidationContext context ) : void

Method Details

GetBasePKColumn() public méthode

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
Résultat Field

GetBasePKColumnList() public méthode

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

GetBasePKColumnList() public méthode

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
Résultat IEnumerable

GetColumnsFullHierarchy() public méthode

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

GetColumnsFullHierarchy() public méthode

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

GetRelationsFullHierarchy() public méthode

public GetRelationsFullHierarchy ( ) : IEnumerable
Résultat IEnumerable

GetRelationsWhereChild() public méthode

Returns generated relations for this table
public GetRelationsWhereChild ( ) : IEnumerable
Résultat IEnumerable

GetRelationsWhereChild() public méthode

Returns generated relations for this table
public GetRelationsWhereChild ( bool fullHierarchy ) : IEnumerable
fullHierarchy 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

IModuleLink() public méthode

public IModuleLink ( Module module ) : void
module Module
Résultat void

IsInheritedFrom() public méthode

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

OnCopy() protected méthode

protected OnCopy ( global::Microsoft.VisualStudio.Modeling sourceElement ) : void
sourceElement global::Microsoft.VisualStudio.Modeling
Résultat void

OnDeleting() protected méthode

protected OnDeleting ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string