ForeignKey not being recognised in VS2012 RC

前端 未结 1 1099
猫巷女王i
猫巷女王i 2021-02-19 15:34

after a lot of help yesterday, I came up against a known error in asp.net4 beta - I upgraded to VS2012 RC Express (4.5), and now VS is reporting two errors in my model, which we

相关标签:
1条回答
  • 2021-02-19 15:57

    I just figured out I needed to add:

    using System.ComponentModel.DataAnnotations.Schema;
    

    I didn't need to move it before, so I assume ForeignKey has been moved under the schema namespace.

    Hope this helps anyone else,

    Thanks, Mark

    0 讨论(0)
提交回复
热议问题