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

Package: Korzh.EasyQuery.Db (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.Db.dll

NameTypeDescription
DbTable()voidInitializes a new instance of the DbTable class.
DbTable(Table source)voidInitializes a new instance of the DbTable class.
NameTypeDescription
FullNamestringGets the full name of the table.
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.
NameTypeDescription
GetCalcAlias()stringGets the calculated alias (used when the “alias” field is empty)
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
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)TaskReads one table’s property from JSON
ToString()stringReturns a that represents the current .
WritePropertiesToJsonAsync(JsonWriter writer)TaskWrites the content of DbTable object to JSON (asynchronous way).