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
| Name | Type | Description |
|---|---|---|
| DbTable() | void | Initializes a new instance of the DbTable class. |
| DbTable(Table source) | void | Initializes a new instance of the DbTable class. |
Properties
| Name | Type | Description |
|---|---|---|
| Hints | string | Gets or sets the hints of the table. |
| IsQuoted | bool | Gets or sets a value indicating whether name of this table should be quoted in SQL expressions. |
| Name | string | Gets or sets the name of the table. |
Methods
| Name | Type | Description |
|---|---|---|
| GetFromExpr(SqlFormats formats) | string | Gets the full name of the table which is used in FROM clause. |
| GetRank() | int | Gets table's rank. It represents the number of links which come out from this table and table's priority |
| GetSchemaName() | string | Gets the schema name of the table. |
| GetSqlExpr(SqlFormats formats) | string | Gets the SQL expression that represents the table in WHERE clause. |
| GetSqlName(SqlFormats formats) | string | Gets the full DB name that represents the table. |
| GetTableName() | string | Gets the name of the table. |
| GetTableTag() | string | Gets the table class (DB or virtual). |
NeedQuote(string s) | bool | Gets a value indicating whether string should be quoted |
ReadOnePropFromJsonAsync(JsonReader reader, string propName, CancellationToken ct) | Task | Reads one table's property from JSON |
WritePropertiesToJsonAsync(JsonWriter writer, CancellationToken ct) | Task | Writes the content of DbTable object to JSON (asynchronous way). |