Skip to main content

mysqlgate-class

Represents DbGate implementation for MySqlGate databases

public class Korzh.EasyQuery.DbGates.MySqlGate
: DbGate

Assembly: Korzh.EasyQuery.MySqlGate.dll

Constructors

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

Properties

NameTypeDescription
ConnectionMySqlConnectionGets 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()DbConnectionWhen overriden in derived class, returns the connection
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 MySql.Data.MySqlClient.MySqlConnection

Static Properties

NameTypeDescription
ConnectionTypeTypeGets the type of the connection.

Static Methods

NameTypeDescription
Register()voidRegisters this type of DbGate in global list of DbGate types.