Query for GetAllForumMember
, any advice?
System.NotSupportedException:“LINQ to Entities does not recognize the method 'System.Linq.IQueryable`1[Weixin.Kia.Community.ThreadComment] GetAll()' method, and this method cannot be translated into a store expression.”
At the moment your code is calling your repository class and Entity framework cannot translate that into SQL.
I have presumed how your models are structured but you can resolve your issue by using the tables that are in the database rather than your repository.
Please note this is untested code. There is a learning curve to using Entity Framework & Linq-to-SQL so I would advise you go through tutorials. You can also get tools like LinqPad, which may help you get used to writing Linq queries on your database.
I hope this is somewhat helpful. If not feel free to update your question with more information, e.g. including the code for your models or database context.