/// <summary> /// Construtor /// </summary> public QObjectBase() { if (InitConnection.Connect == null) { InitConnection.CreateConnection(); _Connection = InitConnection.Connect; } else _Connection = InitConnection.Connect; }
/// <summary> /// Construtor /// </summary> /// <param name="pConnect">Conexão</param> public QObjectBase(QConnect pConnect) { _Connection = pConnect; }
/// <summary> /// Define valores nulos para o objeto /// </summary> /// <param name="disposing">descatar</param> protected virtual void Dispose(bool disposing) { if (disposing) if (Connection != null) { Connection.Dispose(); _Connection = null; } }