Quantcast
Channel: User David Silva-Barrera - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Comment by David Silva-Barrera on Best way to store multiple enums in database

$
0
0
Dear JDB, please read the question again. Notice he is specific about using the Enum. He wants to use a simple Column to store the values, he knows he have multiple values (he mentioned comma possible delimited solution). Yes, he could make the many-to-many association but will have to write a lot of code with no reason or need. The xxbbcc's solution is more practical in this case. You don't need any special SQL annotation, just store the value of the variable, just have to use the boolean operator to compose/decompose it. Your proposal is correct in general, but this is very specific.

Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>