Skip to content

DbColumn class

Represents database table column

public class Korzh.EasyQuery.Db.DbColumn
: Column
TypeNameDescription
EntityAttrBaseAttrGets the entity attribute (Korzh.EasyQuery.EntityAttr object) this column is based on.
DbModelModelGets or sets the reference to the data model where this column is defined.
SortDirectionSortingGets or sets the sorting.
TableListUsedTablesGets the used tables.
TypeNameDescription
voidFillTablesList()Fills the list of used tables.
StringGetAlias(DbQueryFormats formats)Gets the column alias (for SELECT or ORDER BY clause).
StringGetGroupByExpr(DbQueryFormats formats)Gets the column’s expression using in GROUP BY clause.
StringGetOrderByExpr(DbQueryFormats formats)Gets the columns expression for ORDER BY clause.
StringGetSelectExpr(DbQueryFormats formats)Gets the columns expression for SELECT clause.
voidRecreateExpression(String type)Recreates the column expression.
BooleanUseAlias(DbQueryFormats formats)Gets a value indicating whether this column used the alias name or not.