Skip to main content

tablestore-class

Represetns storage of tables.

public class Korzh.EasyQuery.Db.TableStore
: TableList

Assembly: Korzh.EasyQuery.Db.dll

Constructors

NameTypeDescription
TableStore(DbModel model)voidInitializes a new instance of the TablesStorage class.

Methods

NameTypeDescription
AddDbTable(string name, string alias, string schema)DbTableAdds table with passed parameters if such does not exist.
AddDbTable(string name, string alias, string schema, string dbName)DbTableAdds table with passed parameters if such does not exist.
ClearItems()voidRemoves all elements from the System.Collections.ObjectModel.Collection.
InsertItem(int index, Table item)voidInserts an element into the at the specified index.
ReadFromJsonAsync(JsonReader reader, CancellationToken ct = null)TaskReads the list of tables from JSON (asynchronous way).
RemoveItem(int index)voidRemoves the element at the specified index of the System.Collections.ObjectModel.Collection'1.
WriteToJsonAsync(JsonWriter writer, CancellationToken ct = null)TaskWrites the list of tables to JSON (asynchronous way).