Mapping Enum from String

前端 未结 3 755
星月不相逢
星月不相逢 2020-12-13 10:29

I have a string column in a database table which maps to an Enum in code. In my dbml file when I set the \"Type\" to MyTypes.EnumType I get the following error

3条回答
  •  难免孤独
    2020-12-13 10:52

    If you add the global:: qualyfier and press Control + space over the type in the designer.cs file it recognizes the type and you can remove it.

提交回复
热议问题