title: The query contains references to items defined on a different data context?
body: <p>This throws an error saying The query contains references to items defined on a different data context. when i try to assign catName at the bottom.</p>
  
  <pre><code>this.CustomSettings = (
                                      from xx in DBContext.ProductCustomizationMasters
                                      where xx.ProductID == this._ProductID
                                      select new ProductCustomization()
                                      {
                                          ProductID = (int)xx.ProductID,
                                          CategoryID = (int)xx.CustomCategoryID,
                                          CustomID = xx.CustomID,
                                          CustomizationType = (CategoryType)xx.CustomType,
                                          DefaultFreeCount = (short)xx.DefaultFreeCount,
                                          IsDefaultLimit = (bool)xx.IsDefault,
                                          HasItems = ((xx.DefaultFreeCount == 0) ? (false) : (true)),
                                          CatName= (from yy in DBContext.CustomCategoryTbls where yy.CatID == xx.CustomCategoryID select yy.CatName).FirstOrDefault()
                                      }
                                      ).ToList();
  </code></pre>
  
  <p>i am makng datacontext like this</p>
  
  <pre><code>private libDBDataContext _DB = null;
  public libDBDataContext DBContext { get { return (_DB == null) ? new libDBDataContext() : _DB; } set { _DB = value; } }
  </code></pre>
  
  <p>how it says it has two different datacontext, while things are being performed on the same datacontext.</p>