Linq Exception: Function can only be invoked from linq to entities

后端 未结 3 387
半阙折子戏
半阙折子戏 2021-01-12 07:46

I have a StudentReceipts table which stores ReceiptNo as string(001,002,003,..,099,..).

I want go get the last receiptno detai

3条回答
  •  孤街浪徒
    2021-01-12 08:27

    use and .AsQueryable()

    var _lastGeneratedRecDetails = _db.StudentReceipts
                                 .AsEnumerable().AsQueryable()
    

提交回复
热议问题