LINQ options.loadwith problem

前端 未结 3 2238
梦谈多话
梦谈多话 2021-02-15 11:39

I am writing a tag-based ASP.net system. Using the following db scheme:

Topic TagTopicMap Tag

Basically it is a

3条回答
  •  Happy的楠姐
    2021-02-15 12:06

    The problem in your case is Take(10). Here's from the horse's mouth:

    https://connect.microsoft.com/VisualStudio/feedback/details/473333/linq-to-sql-loadoptions-ignored-when-using-take-in-the-query

    The suggested workaround is to add Skip(0). That did not work for me, but Skip(1) did work. Useless as it may be, at least I know where my problem is.

提交回复
热议问题