title: Simple EF 5 Query brings back no results
body: <p>Strange issue: </p>
  
  <p>Trying to do a simple query against my email notifications table:</p>
  
  <pre><code>        using (MyContext context = new MyContext())
          {
              IQueryable&lt;EmailNotification&gt; query = context.EmailNotifications.Where(q =&gt; (q.LastSendAttemptStatus == EmailNotificationSendStatuses.Pending) || (q.LastSendAttemptStatus == EmailNotificationSendStatuses.Resend));
  
              return query.ToList();
          }
  </code></pre>
  
  <p>It brings back no results even though the rows are there. In fact, I looked at the SQL it generates and ran it without any changes, and it <strong>does</strong> bring the right results.</p>
  
  <pre><code>SELECT 
  [Extent1].[EmailNotificationID] AS [EmailNotificationID], 
  [Extent1].[From] AS [From], 
  [Extent1].[To] AS [To], 
  [Extent1].[Cc] AS [Cc], 
  [Extent1].[Bcc] AS [Bcc], 
  [Extent1].[Subject] AS [Subject], 
  [Extent1].[Body] AS [Body], 
  [Extent1].[LastSendAttemptOn] AS [LastSendAttemptOn], 
  [Extent1].[LastSendAttemptStatus] AS [LastSendAttemptStatus], 
  [Extent1].[FailureComments] AS [FailureComments]
  FROM [dbo].[EmailNotifications] AS [Extent1]
  WHERE (0 =  CAST( [Extent1].[LastSendAttemptStatus] AS int)) OR (3 =  CAST( [Extent1].   [LastSendAttemptStatus] AS int))
  </code></pre>
  
  <p>Any hints on what should I be checking?</p>