Entity Framework Ordering Includes

前端 未结 7 1357
孤城傲影
孤城傲影 2020-11-27 21:11

I am trying to get something like the following to work:

_dbmsParentSections = FactoryTools.Factory.PdfSections
                        .Include(x => x.Ch         


        
7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 21:49

    This will never gona work. EF include is try to understand and translate everything to SQL, but you want to much from this. Load all entities without sorting and .ToList()-ing, and write an extension method for IEnumerable to get an ordered result.

提交回复
热议问题