Where is DatabaseGeneratedAttribute Data Annotation?
...because it doesn't seem to be in System.Com开发者_运维知识库ponentModel.DataAnnotations!
It is in that namespace, but was introduced in Entity Framework 4.1. Have you got that installed, and referenced EntityFramework.dll
in your project?
精彩评论