title: Cannot access a disposed object
body: <p>Hi could you help me with this error?<br>
  <code>Cannot access a disposed object.
  Object name: 'DataContext accessed after Dispose.'.</code></p>
  
  <p>in my GUI</p>
  
  <pre><code> private void InitializePage()
      {
          cbCategory.DataSource = stock.StockCategory.Get();
  
      }
  </code></pre>
  
  <p>in Datamodel</p>
  
  <pre><code> public IEnumerable&lt;StockCategory&gt; Get()
      {
          using (leDataContext db = new leDataContext())
          {
              try
              {
                  var r = from s in db.StockCategories
                          select s;
                  return r;
              }
              catch (Exception ex)
              {
                  Logger.Error(typeof(StockCategory), ex.ToString());
                  throw;
              }
  
          }
  
      }
  </code></pre>