Can't find property or field on a dynamic object

前端 未结 2 1640
走了就别回头了
走了就别回头了 2021-01-25 17:25

I using Dynamic Linq to do some database queries and it\'s working really well up to now. I can pass a string to a Select to select fields like so:

         


        
2条回答
  •  孤城傲影
    2021-01-25 17:48

    Your Cast is Defaulting to which will cause an error

    (output as System.Collections.Generics.IEnumerable)
    

    This Cast Specified the Correct Interface Try again

    (output as System.Collections.IEnumerable).Cast().ToList()
    

提交回复
热议问题