Skip to content

VirtualTable class

Represents a virtual table. Virtual tables do not correpond to some table in database but are defined through some SQL SELECT statement instead.

public class Korzh.EasyQuery.Db.VirtualTable
: Table, IComparable<Table>
TypeNameDescription
StringExprGets or sets the expression.
TypeNameDescription
StringGetFromExpr(DbQueryFormats formats)Gets the full name of the table which is used in FROM clause.
StringGetPrimalExpr(DbQueryFormats formats)Gets the “primal” table expression. Usually it’s the name this table is referenced by in the DB. However, for a virtual table it’s simply its expression.
StringGetSqlExpr(DbQueryFormats formats)Gets the SQL expression that represents the table in WHERE clause.
StringGetSqlName(DbQueryFormats formats)Gets the name that represents the table in SQL expressions.
StringGetTableTag()Gets the table class (DB or virtual).
voidProcessAttribute(XmlReader reader)Processes one attribute during XML reading.
voidReadOnePropFromJson(JsonReader reader, String propName)Reads one table’s property from JSON
TaskReadOnePropFromJsonAsync(JsonReader reader, String propName)Reads one table’s property from JSON (asynchronous way).
voidSaveAttributes(XmlWriter writer)Saves table properties to System.Xml.XmlWriter.
StringToString()Returns a System.String that represents the current System.Object.
voidWritePropertiesToJson(JsonWriter writer)Writes the content of VirtualTable object to JSON
TaskWritePropertiesToJsonAsync(JsonWriter writer)Writes the content of VirtualTable object to JSON (asynchronous way).