title: gridmvc querying without lazyloading
body: <p>آere is my store class:</p>
  
  <pre><code>public class Store : IEntity, IAuditedEntity
  {
      public Store();
  
      public double CommissionRate { get; set; }
      public bool CommissionEnabled { get; set; }
  public virtual ICollection&lt;User&gt; StoreUsers { get; set; }}
  </code></pre>
  
  <p>And here is my user class:</p>
  
  <p>public class User : IdentityUser, IEntity
      {
          public User();</p>
  
  <pre><code>    [StringLength(50)]
      public string CustomerAppToken { get; set; }
      [StringLength(256)]
      public string StoreDeviceId { get; set; }
      [StringLength(256)]
      public string CustomerDeviceId { get; set; }
      public bool StoreAppInstalled { get; set; }
      public bool WinAppInstalled { get; set; }
  </code></pre>
  
  <p>I want to show "yes" in a gridview column if any user of that store has <code>winappinstall = true</code> and here is my code for that:</p>
  
  <pre><code> cols.Add("CustomerAppInstalled").WithHeaderText("HAs App?")
                                  .WithValueExpression(p =&gt; p.OnlinePaymentEnabled.ToBoolean() ? "yes" : "no")
                                  .WithVisibility(visible: true, allowChangeVisibility: true)
                                  .WithSorting(true);
  </code></pre>
  
  <p>but it throws the exception of :</p>
  
  <blockquote>
    <p>the objectcontext instance has been disposed</p>
  </blockquote>
  
  <p>My solution was to use .Include to disable lazyloading but I do not know where?</p>