MVC3 naming a column beginning with a number

前端 未结 3 996
野的像风
野的像风 2021-01-22 01:16

I am new to MVC3 C#. I need to have a column in the database called 3DSecureStatus for legacy purposes.

When I call the column this and insert in the applic

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-22 01:51

    Rename _3DSecureStatus to something else.

    Entity Framework Code First does not allow properties/columns to have underscores or numbers in the beginning of the name.

    So you have to change this until this is fixed.

提交回复
热议问题