我是MVC3 C#的新手。为了传统目的,我需要在数据库中有一列名为3DSecureStatus
的列。MVC3命名以数字开头的列
当我打电话列这一点,并在应用程序中插入我得到这个错误:
[ModelValidationException: One or more validation errors were detected during model generation:
System.Data.Edm.EdmProperty: Name: The specified name is not allowed: '_3DSecureStatus'. ]
在我定义它为public string _3DSecureStatus { get; set; }
的应用程序,因为它不喜欢3
是列的第一个字符名称。
有什么建议该怎么办?
显示您确切的失败的代码,请 –
整个应用程序所行的工作,那是错误,我得到当我运行它时 – Beginner
@Beginner,你可以调试你的应用程序,并通过它并向我们展示它失败的行吗?或者至少提供一个堆栈跟踪。 –