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
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.
Use the Column attribute to specify the database column name
[Column("3DSecureStatus")]
public string ThreeDSecureStatus { get; set; }
Or use fluent mapping like
Property(x => x.ThreeDSecureStatus).HasColumnName("3DSecureStatus");
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.