title: Static C# variable, throw an error because of a database connection
body: <p>I'm wondering if there's a way to overcome this situation:</p>
  
  <p>I have an static class with an static variable called let's say</p>
  
  <pre><code>static string[] Cities = GetCities();
  </code></pre>
  
  <p>And <code>GetCities</code> obtains from a database all the cities. The problem is that I'm getting an error with <code>GetCities</code> because the data server sometimes is not available, and this error doesn't disappear even if the server is available again. 
  <br>I think that this is because the variable Cities is created only once...</p>