title: break does not stop while
body: <p>I am using the while and performing a check inside it, I put a breakpoint in the else and it looks like everything is ok, the code performs the verification and goes to the BREAK, however the loop does not stop ...</p>
  
  <pre><code>Cliente cliente = null;
  
  do {
    cliente = DataBase.Clientes.FirstOrDefault(x =&gt; x.Status == 0);
  
    if (cliente.NossoNumero == string.Empty || cliente.Email == string.Empty) {
      cliente.UpdateStatus(Status.Error);
    } 
    else {
      break;
    }
  }
  while (DataBase.Clientes.FirstOrDefault(x =&gt; x.Status == 0) != null);
  
  return cliente;
  </code></pre>