title: Entities in 'Y' participate in the 'FK_Y_X' relationship. 0 related 'X' were found. 1 'X' is expected
body: <p>I have a <code>1..*</code> relationship between <code>X</code> and <code>Y</code>, where <code>X</code> is the parent. When I try and delete record <code>Y</code> I get the following exception message:</p>
  
  <blockquote>
    <p>Entities in 'Y' participate in the 'FK_Y_X' relationship. 0 related 'X' were found. 1 'X' is expected.</p>
  </blockquote>
  
  <p>I am currently trying to delete the record in a generic, disconnected manner in the following way:</p>
  
  <pre><code>public bool Delete(TEntity entity)
  {
      if (entity == null)
      {
          return false;
      }
      try
      {
          var entry = _context.Entry(entity);
          entry.State = EntityState.Deleted;
          _context.SaveChanges();
          return true;
      }
      catch
      {
          return false;
      }
  }
  </code></pre>
  
  <p>The entity that is passed in is loaded with <code>AsNoTracking()</code> on the same context.</p>
  
  <p>Any ideas?</p>