public DatabaseTable(string tableName, MySqlConnection connection)
 {
     if (tableName == null)
     {
         throw new ArgumentNullException("tableName");
     }
     TableName = tableName;
     Client    = new MySQLEntityClient(connection, true);
 }
 public DatabaseTable(string tableName, MySQLEntityClient client)
 {
     if (tableName == null)
     {
         throw new ArgumentNullException("tableName");
     }
     TableName = tableName;
     Client    = client;
 }
 /// <summary>
 /// Recives the database client instance
 /// </summary>
 public virtual void SendClient(MySQLEntityClient client)
 {
     Client = client;
 }
Ejemplo n.º 4
0
 public DatabaseClient(string address, string username, string password, string database, ushort port = 3306, bool singleConnectionMode = true, bool autoInit = true)
 {
     Client     = new MySQLEntityClient(address, username, password, database, port, singleConnectionMode);
     m_AutoInit = autoInit;
     FinaliseConstructor();
 }
Ejemplo n.º 5
0
 public DatabaseClient(string connectionString, bool singleConnectionMode = true, bool autoInit = true)
 {
     Client     = new MySQLEntityClient(connectionString, singleConnectionMode);
     m_AutoInit = autoInit;
     FinaliseConstructor();
 }
Ejemplo n.º 6
0
 public DatabaseClient(DatabaseSettings settings, bool singleConnectionMode = true, bool autoInit = true)
 {
     Client     = new MySQLEntityClient(settings, singleConnectionMode);
     m_AutoInit = autoInit;
     FinaliseConstructor();
 }