Closed
Description
Andrey Kozhyn created an issue — 2nd January 2013, 15:19:09:
When HasFlag method is called for any enum System.NotSupportedException is thrown for such query:
session.Query().FirstOrDefault(x => x.EnumProperty.HasFlag(TestEnum.Value));
Alexander Zaytsev added a comment — 2nd January 2013, 15:21:43:
Does EntityFramework or Linq2Sql support this?
Andrey Kozhyn added a comment — 2nd January 2013, 15:37:20:
Checked for EntityFramework. It doesn't support it.
Andreas Eriksson added a comment — 7th July 2015, 20:24:33:
Entity Framework has support for it since 6.1
http://data.uservoice.com/forums/72025-entity-framework-feature-suggestions/suggestions/3951293-support-enum-hasflag