Skip to content

DbTable class

Represents one table in Korzh.EasyQuery.Db.DbModel object which corresponds to some database table

public class Korzh.EasyQuery.Db.DbTable
: Table, IComparable<Table>
TypeNameDescription
StringFullNameGets the full name of the table.
StringHintsGets or sets the hints of the table.
BooleanIsQuotedGets or sets a value indicating whether name of this table should be quoted in SQL expressions.
StringNameGets or sets the name of the table.
TypeNameDescription
StringGetCalcAlias()Gets the calculated alias (used when the “alias” field is empty)
StringGetFromExpr(DbQueryFormats formats)Gets the full name of the table which is used in FROM clause.
Int32GetRank()Gets table’s rank. It represents the number of links which come out from this table
StringGetSqlExpr(DbQueryFormats formats)Gets the SQL expression that represents the table in WHERE clause.
StringGetSqlName(DbQueryFormats formats)Gets the full DB name that represents the table.
StringGetTableName()Gets the name of the table.
StringGetTableTag()Gets the table class (DB or virtual).
BooleanNeedQuote(String s)Gets a value indicating whether string should be quoted
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
voidSaveAttributes(XmlWriter writer)Saves table properties to System.Xml.XmlWriter object.
StringToString()Returns a that represents the current .
voidWritePropertiesToJson(JsonWriter writer)Writes the content of DbTable object to JSON.
TaskWritePropertiesToJsonAsync(JsonWriter writer)Writes the content of DbTable object to JSON (asynchronous way).