SQL Table and C# Enumeration

前端 未结 4 1461
北恋
北恋 2020-12-28 17:33

Suppose I have n types of users in my application.

I am using an UserType enumeration to distinguish them.

Do I need to keep a table in

4条回答
  •  甜味超标
    2020-12-28 18:18

    I would do that. I would create a separate table which contains all the possible usertypes. By doing so, you'll keep an eye on the integrity of your data at the DB level.

    Why would it make your code somewhat complicated ? I do not understand that.

提交回复
热议问题