Skip to main 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

Assembly: Korzh.EasyQuery.Db.dll

Constructors

NameTypeDescription
DbTable()voidInitializes a new instance of the DbTable class.
DbTable(Table source)voidInitializes a new instance of the DbTable class.

Properties

NameTypeDescription
HintsstringGets or sets the hints of the table.
IsQuotedboolGets or sets a value indicating whether name of this table should be quoted in SQL expressions.
NamestringGets or sets the name of the table.

Methods

NameTypeDescription
GetFromExpr(SqlFormats formats)stringGets the full name of the table which is used in FROM clause.
GetRank()intGets table's rank. It represents the number of links which come out from this table and table's priority
GetSchemaName()stringGets the schema name of the table.
GetSqlExpr(SqlFormats formats)stringGets the SQL expression that represents the table in WHERE clause.
GetSqlName(SqlFormats formats)stringGets the full DB name that represents the table.
GetTableName()stringGets the name of the table.
GetTableTag()stringGets the table class (DB or virtual).
NeedQuote(string s)boolGets a value indicating whether string should be quoted
ReadOnePropFromJsonAsync(JsonReader reader, string propName, CancellationToken ct)TaskReads one table's property from JSON
WritePropertiesToJsonAsync(JsonWriter writer, CancellationToken ct)TaskWrites the content of DbTable object to JSON (asynchronous way).