Reference > Utilities > dbex
dbex.SelectAllFor
The dbex.SelectAllFor method returns a list of AnyElement(s), each element in the list is actually a FieldExpression representing a column in a database table.
dbex.SelectAllFor returns a list of AnyElement which each can be used anywhere accepting an AnyElement. The design intent of the method is to return a list for use as the select expressions in SelectOne or SelectMany queries.
Syntax
dbex.SelectAllFor({entity_expression}[,{prefix|aliasingDelegate}])
Arguments
- entity_expression
- – The table entity that correlates to entities of type `TEntity`.
- prefix
- – Used to create an alias for each element by prefixing the property name with the value.
- aliasingDelegate
- – A delegate that receives the name of an entity property and returns a new name for that property to use as an alias.
Returns
IEnumerable<AnyElement>
A list of expressions, one for each property of the entity.
syntax examples
