Reference > Utilities > dbex
dbex.Alias
Use dbex.Alias
to create/use an alias for an expression. When using aliases, the generic form must be used when the resulting type must be known.
Create an alias and generically define the return type
Syntax
dbex.Alias<T>([{tableName},]{fieldName})
Arguments
- T
- – The typed alias for use in composite expressions or select clauses where the type information is required.
- tableName
- – An `AnyElement` to change from nullable to non-nullable, or from non-nullable to nullable.
- fieldName
- – An `AnyElement` to change from nullable to non-nullable, or from non-nullable to nullable.
Create an alias without return type information
Syntax
dbex.Alias([{tableName},]{fieldName})
Arguments
- tableName
- – An `AnyElement` to change from nullable to non-nullable, or from non-nullable to nullable.
- fieldName
- – An `AnyElement` to change from nullable to non-nullable, or from non-nullable to nullable.