C# Класс nHydrate.Dsl.Entity

Наследование: nHydrate.Dsl.IModuleLink, nHydrate.Dsl.IDatabaseEntity, nHydrate.Dsl.IFieldContainer
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Validate void
ValidateFields void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnCopy ( global::Microsoft.VisualStudio.Modeling sourceElement ) : void
OnDeleting ( ) : void

Приватные методы

Метод Описание
Validate ( ValidationContext context ) : void
ValidateFields ( ValidationContext context ) : void

Описание методов

GetBasePKColumn() публичный Метод

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
Результат Field

GetBasePKColumnList() публичный Метод

Returns all primary keys from the ultimate ancestor in the table hierarchy
public GetBasePKColumnList ( ) : IEnumerable
Результат IEnumerable

GetBasePKColumnList() публичный Метод

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
Результат IEnumerable

GetColumnsFullHierarchy() публичный Метод

This gets all columns from this and all base classes
public GetColumnsFullHierarchy ( ) : IEnumerable
Результат IEnumerable

GetColumnsFullHierarchy() публичный Метод

This gets all columns from this and all base classes
public GetColumnsFullHierarchy ( bool includeCurrent ) : IEnumerable
includeCurrent bool
Результат IEnumerable

GetRelationsFullHierarchy() публичный Метод

public GetRelationsFullHierarchy ( ) : IEnumerable
Результат IEnumerable

GetRelationsWhereChild() публичный Метод

Returns generated relations for this table
public GetRelationsWhereChild ( ) : IEnumerable
Результат IEnumerable

GetRelationsWhereChild() публичный Метод

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

IModuleLink() публичный Метод

public IModuleLink ( Module module ) : void
module Module
Результат void

IsInheritedFrom() публичный Метод

Determines if the specified table is an ancestor of the this table object
public IsInheritedFrom ( Entity entity ) : bool
entity Entity
Результат bool

OnCopy() защищенный Метод

protected OnCopy ( global::Microsoft.VisualStudio.Modeling sourceElement ) : void
sourceElement global::Microsoft.VisualStudio.Modeling
Результат void

OnDeleting() защищенный Метод

protected OnDeleting ( ) : void
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string