NpgSqlGate class
Represents DbGate implementation for NpgSql databases
public class Korzh.EasyQuery.DbGates.NpgSqlGate : DbGatePackage: Korzh.EasyQuery.NpgSqlGate (targets: netstandard2.0)
Assembly: Korzh.EasyQuery.NpgSqlGate.dll
Constructors
Section titled “Constructors”| Name | Type | Description |
|---|---|---|
| NpgSqlGate() | void | Initializes a new instance of the MySqlGate class. |
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| Connection | NpgsqlConnection | Gets the connection. |
Methods
Section titled “Methods”| Name | Type | Description |
|---|---|---|
| CoreCheckConnection() | void | Checks the connection. |
| CoreGetDatabases(DbInfoList databases) | void | Core implementation of Korzh.EasyQuery.Db.DbGate.GetDatabases method. |
CoreGetFieldsBySQL(string sql, DbFieldInfoList fields) | void | Core implementation of Korzh.EasyQuery.Db.DbGate.GetFieldsBySQL(System.String) method. |
CoreGetLinks(string dbName, string schemaName, DbLinkInfoList links) | void | Core implementation of Korzh.EasyQuery.Db.DbGate.GetLinks(System.String,System.String) method. |
CoreGetTables(string dbName, string schemaName, DbTableInfoList tables) | void | Core implementation of Korzh.EasyQuery.Db.DbGate.GetTables(System.String,System.String) method. |
| GetConnection() | DbConnection | Get the connection object (NpgsqlConnection in this case) |
GetDataAdapter(string sqlText) | DbDataAdapter | Gets the data adapter (NpgsqlDataAdapter in this case) |
| GetFormatType() | FormatType | Gets the type of the format. |
| GetGateId() | string | Gets the ID of Korzh.EasyQuery.Db.DbGate type. |
| GetName() | string | Gets the name of database gate. |
| GetPwdName() | string | Gets the name of “password” attribute in connection string. |
| GetSqlDialect() | string | Gets the name of default SQL dialect. |
GetTableFieldsMap(string dbName, string schemaName) | Dictionary<string, DbFieldInfoList> | |
| GetUidName() | string | Gets the name of User ID attribute in connection string |
SetConnection(DbConnection connection) | void | Sets the Npgsql.NpgsqlConnection |
Static Properties
Section titled “Static Properties”| Name | Type | Description |
|---|---|---|
| ConnectionType | Type | Gets the type of the connection. |