我在运行时收到此错误:
异常详细信息:System.InvalidOperationException:未处理的绑定类型:ListBinding
- Choice_A、_b、_C 是字符串
- “选择”是列表
var qs = (from questions in dc.Survey_Questions
where questions.Survey_ID == surveyid
select new SQuestions
{
QuestionID = questions.Question_ID,
Description = questions.Description,
Choice_A = questions.Choice_A,
Choice_B = questions.Choice_B,
Choice_C = questions.Choice_C,
**Choices = {questions.Choice_A, questions.Choice_B,
questions.Choice_C}**
}).ToList();
基本上我想知道我如何分配给Choice_A、Choice_B、Choice_C 的List Choices 值。提前致谢。