Cannot implicitly convert type 'System.Linq.IQueryable' to 'System.Collections.Generic.IList'

后端 未结 7 1672
忘了有多久
忘了有多久 2020-12-14 06:16

I have a method:

public DzieckoAndOpiekunCollection GetChildAndOpiekunByFirstnameLastname(string firstname, string lastname)
{
    DataTransfer.ChargeInSchoo         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 07:12

    I've got solved my problem this way in EF on list of records from db

    ListOfObjectToBeOrder.OrderBy(x => x.columnName).ToList();
    

提交回复
热议问题