tableWithAlias property
String
tableWithAlias
The table name, optionally suffixed with the alias if one exists. This can be used in select statements, as it returns something like "users u" for a table called users that has been aliased as "u".
Implementation
String get tableWithAlias {
if (aliasedName == entityName) {
return entityName;
} else {
return '$entityName $aliasedName';
}
}