Skip to main content

npgsqlgate-class

Represents DbGate implementation for NpgSql databases

public class Korzh.EasyQuery.DbGates.NpgSqlGate
: DbGate

Assembly: Korzh.EasyQuery.NpgSqlGate.dll

Constructors

NameTypeDescription
NpgSqlGate()voidInitializes a new instance of the MySqlGate class.

Properties

NameTypeDescription
ConnectionNpgsqlConnectionGets the connection.

Methods

NameTypeDescription
CoreCheckConnection()voidChecks the connection. Connection is null
CoreGetDatabases(DbInfoList databases)voidCore implementation of Korzh.EasyQuery.Db.DbGate.GetDatabases method.
CoreGetFieldsBySQL(string sql, DbFieldInfoList fields)voidCore implementation of Korzh.EasyQuery.Db.DbGate.GetFieldsBySQL(System.String) method.
CoreGetLinks(string dbName, string schemaName, DbLinkInfoList links)voidCore implementation of Korzh.EasyQuery.Db.DbGate.GetLinks(System.String,System.String) method.
CoreGetTables(string dbName, string schemaName, DbTableInfoList tables)voidCore implementation of Korzh.EasyQuery.Db.DbGate.GetTables(System.String,System.String) method.
GetConnection()DbConnectionGet the connection object (NpgsqlConnection in this case)
GetDataAdapter(string sqlText)DbDataAdapterGets the data adapter (NpgsqlDataAdapter in this case)
GetFormatType()FormatTypeGets the type of the format.
GetGateId()stringGets the ID of Korzh.EasyQuery.Db.DbGate type.
GetName()stringGets the name of database gate.
GetPwdName()stringGets the name of "password" attribute in connection string.
GetSqlDialect()stringGets the name of default SQL dialect.
GetTableFieldsMap(string dbName, string schemaName)Dictionary<string, DbFieldInfoList>
GetUidName()stringGets the name of User ID attribute in connection string
SetConnection(DbConnection connection)voidSets the Npgsql.NpgsqlConnection

Static Properties

NameTypeDescription
ConnectionTypeTypeGets the type of the connection.