Entity Framework Code First and Classes that Implement IList

前端 未结 1 1483
囚心锁ツ
囚心锁ツ 2021-01-24 22:52

I have a ComplexType that must implement IList (background info here).

Unfortunately, Entity Framework complains about the indexed pro

相关标签:
1条回答
  • 2021-01-24 23:39

    Entity framework doesn't support open generic entities and I believe the same is true for complex types. The only way is to define specific type derived from closed generic type as you shown in your linked question.

    Also there is some well known bug that mapped class must not have indexer.

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