**Andrey Kozhyn** created an [issue](https://nhibernate.jira.com/browse/NH-3365) — <time datetime="2013-01-02T15:19:09.924Z" title="2013-01-02T15:19:09.924Z">2nd January 2013, 15:19:09</time>: > When HasFlag method is called for any enum System.NotSupportedException is thrown for such query: > > session.Query<Entity>().FirstOrDefault(x => x.EnumProperty.HasFlag(TestEnum.Value)); > --- **Alexander Zaytsev** added a comment — <time datetime="2013-01-02T15:21:43.223Z" title="2013-01-02T15:21:43.223Z">2nd January 2013, 15:21:43</time>: > Does EntityFramework or Linq2Sql support this? > --- **Andrey Kozhyn** added a comment — <time datetime="2013-01-02T15:37:20.015Z" title="2013-01-02T15:37:20.015Z">2nd January 2013, 15:37:20</time>: > Checked for EntityFramework. It doesn't support it. > --- **Andreas Eriksson** added a comment — <time datetime="2015-07-07T20:24:33.313Z" title="2015-07-07T20:24:33.313Z">7th July 2015, 20:24:33</time>: > Entity Framework has support for it since 6.1 > http://data.uservoice.com/forums/72025-entity-framework-feature-suggestions/suggestions/3951293-support-enum-hasflag >