0
{
"_id" : ObjectId("580bc94b221036257caf2636"),
"Status" : "Scheduled",
//I want to get this Questions list
"Questions" : [
{
"QuestionType" : "Choice",
"Question" : "What is your name?",
"Correct" : "C",
"Options" : [
"xxx",
"xxx",
"xxx"
]
},
{
"QuestionType" : "Choice",
"Question" : "What is your name?",
"Correct" : "C",
"Options" : [
"xxx",
"xxx",
"xxx"
]
}
]
}
は私のクエリ
var collection = mongodb.GetCollection<QuestionsList>("Papers");
var choice = collection.Find(Query.EQ("userName", "Sohail")).SetFields(Fields.Exclude("status")
.Slice("Questions", 1)).Single();
return choice.multiQuestions.ToList();
である私は、過去1週間のためにこれをしようとしていますが、何も 私が働いているようだ、次のデータを検討します質問はどのようにしてこの質問リストを取得してMVCビューに表示できるのですか? おかげで