Entity Framework Code First and Classes that Implement IList<T>
问题 I have a ComplexType that must implement IList<T> (background info here). Unfortunately, Entity Framework complains about the indexed property required of that interface [NotMapped] public T this[int index] (Note it's decorated with the NotMapped data annotation). I get a DbUpdateException at runtime with the inner exception Indexed properties are not supported. If I comment out that the class implements IList<T> and comment out the indexed property, instances of the class persist as expected