草庐IT

DzieckoAndOpiekun

全部标签

c# - 无法将类型 'System.Linq.IQueryable' 隐式转换为 'System.Collections.Generic.IList'

我有一个方法:publicDzieckoAndOpiekunCollectionGetChildAndOpiekunByFirstnameLastname(stringfirstname,stringlastname){DataTransfer.ChargeInSchoolEntitiesdb=newDataTransfer.ChargeInSchoolEntities();DzieckoAndOpiekunCollectionresult=newDzieckoAndOpiekunCollection();if(firstname==null&&lastname!=null){ILis

c# - 无法将类型 'System.Linq.IQueryable' 隐式转换为 'System.Collections.Generic.IList'

我有一个方法:publicDzieckoAndOpiekunCollectionGetChildAndOpiekunByFirstnameLastname(stringfirstname,stringlastname){DataTransfer.ChargeInSchoolEntitiesdb=newDataTransfer.ChargeInSchoolEntities();DzieckoAndOpiekunCollectionresult=newDzieckoAndOpiekunCollection();if(firstname==null&&lastname!=null){ILis