error when using interfaces for Entity Framework (4.2) entities

前端 未结 2 1351
挽巷
挽巷 2020-12-07 02:40

I am using the the latest version of Entity Framework (4.2) and trying to implement interfaces for my Entities and for some reason, it isn\'t compiling. it is throwing an er

相关标签:
2条回答
  • 2020-12-07 02:51

    "You can add your own partial class files to specify the interfaces to be implemented - and to provide any actual implementation methods you need" - as suggested here

    0 讨论(0)
  • 2020-12-07 03:07

    Entity framework is not able to work with interfaces. Your navigation properties must use the real entity types (mapped classes).

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