Skip to main content

tablelist-class

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

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

Assembly: Korzh.EasyQuery.Db.dll

Constructors

NameTypeDescription
TableList()void

Methods

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.
Find(string aliasOrName)TableFinds the Korzh.EasyQuery.Db.Table object by its alias or name.
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.
FindBySchemaAndName(string schema, string name)TableFinds the Korzh.EasyQuery.Db.Table object by its schema and 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.