Skip to content

TableList class

Represents list of the Korzh.EasyQuery.Db.Table objects.

public class Korzh.EasyQuery.Db.TableList
: Collection<Table>

Package: Korzh.EasyQuery.Db (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.Db.dll

NameTypeDescription
TableList()void
NameTypeDescription
Add(Table table)voidAdds the table
AddIfNotExists(Table table)voidAdds the table if there is no another table with the same alias in this list yet.
AddRange(IEnumerable<Table> tables, bool skipExisting = False)voidAdds the range of tables
ClearItems()void
CopyFrom(TableList tables)voidCopies tables from another list.
FindByAlias(string alias)TableFinds the Korzh.EasyQuery.Db.Table object by its alias.
FindByName(string name)TableFinds the Korzh.EasyQuery.Db.Table object by its name.
GetCommaText()stringGets the string whcih contains comma separated list of tables
GetUniqueAlias(string baseName)stringGenerates an unique Korzh.EasyQuery.Db.Table object alias by some base name
InsertItem(int index, Table item)void
RemoveItem(int index)void
SortAlphabetically()voidSorts the list alphabetically.