Can someone please provide code to fix this error?
\"Cannot apply indexing with [] to an expression of type \'ICollection\'
Essentially, I\'m trying to
ICollections are not ordered, so that cannot be indexed.
ICollection
Instead, you should use a separate ViewModel class with IList<T> property.
IList<T>
Use IList
IList
public class A { public int Name { get; set; } public virtual IList<B> Bs { get; set; } }