0
您好我有一個像這樣的查詢:LINQ到實體例外
var queryGridData = from question in questions
select new {
i = question.Id,
cell = new List<string>() { question.Id.ToString(), question.Note, question.Topic }
};
轉換的int
導致所需要的ToString()
部分:
LINQ to Entities does not recognize the method 'System.String.ToString()' method, and this method cannot be translated into a store expression.
Hmmmmmmmmmmm。我需要它作爲string
進入collection
。有任何想法嗎?
太好了,謝謝你正在做我想做的! :) –