title: Using a enum with flag in an Entity Framework query
body: <p>i have a enum type like below</p>
  
  <pre><code>  [Flags]
      public enum WeekDays
      {
  
          Monday = 1,
          Tuesday = 2,
          Wednesday = 4,
          Thursday = 8,
          Friday = 16,
          Saturday = 32,
          Sunday = 64,
      }
  
  
     WeekDays dw = WeekDays.Friday | WeekDays.Monday | WeekDays.Saturday;
  
     int dwInt = (int)dw;
  
     var list = query.Where(f =&gt; f.FromDateTime.DayOfWeek == dwInt "??????????? what can i do there????").ToList();
  </code></pre>