Store user options using enumeration, bitwise operators, and EF Core

At times you need to store a set of options, settings, or choices for a user. A common approach is to create three tables - Users, Options, and UserOptions - to store the data involved. However, you can also use an alternate approach that involves enumerations, bitwise operators, and EF core value converters. To that end this article discusses such an approach with an example.

http://www.binaryintellect.net/articles/28750cd5-5cb1-461d-8dcd-e7155acb5290.aspx