문제


It happends that in EF you must use ICollection for your properties,

eg. public virtual ICollection<Question> Questions { get; set; }

But I wan't to use LINQ on that list, which is not possible in ICollection.
Should I cast it to IQueryable? How? or what is the standard way to achieve this?

도움이 되었습니까?

해결책

Ryan is correct in the comments.

You need to ensure that you reference the Linq namespace.

using System.Linq;

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top