MVC3 naming a column beginning with a number

前端 未结 3 931
野的像风
野的像风 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:40

    This is actually an Entity Framework error rather then an MVC error. It looks like from a bit of googling that underscores as the start of Code First field names are invalid and don't work. If you can, try putting a letter in front of it.

提交回复
热议问题