ExamProduced:
+ ExamID
+ Date
+ Seed
+ Exercises
Exercise
+ Quantity
+ IsMakeUp
+ Score
+ Answers
Answer
+ IsCorrect
而且我有這個XML文件
<Answers ExamID="1" StudentID="abcd" Date="10/26/2011 11:50:34 AM"
Seed="495" IsSED="False">
<Summary>
<Objective ID="1" MakeUp="False" Quantify="5"
Difficulty="Easy" Accredited="True" Produced="True">
<Details Result="0" Date="10/26/2011 11:35:18 AM" />
<Details Result="1" Date="10/26/2011 11:50:34 AM" />
</Objective>
<Objective ID="2" MakeUp="True" Quantify="5"
Difficulty="Easy" Accredited="False" Produced="True">
<Details Result="0" Date="10/26/2011 11:35:18 AM" />
<Details Result="0" Date="10/26/2011 11:50:34 AM" />
</Objective>
<Objective ID="3" MakeUp="True" Quantify="2"
Difficulty="Easy" Accredited="False" Produced="False">
<Details Result="0" Date="10/26/2011 11:35:18 AM" />
<Details Result="0" Date="10/26/2011 11:50:34 AM" />
</Objective>
</Summary>
<Answer ProblemID="0" ObjectiveID="1" IsCorrect="True" Difficulty="Easy">
<Result DataType="System.Decimal" Value="9" />
</Answer>
<Answer ProblemID="0" ObjectiveID="1" IsCorrect="True" Difficulty="Easy">
<Result DataType="System.Decimal" Value="20" />
</Answer>
<Answer ProblemID="0" ObjectiveID="1" IsCorrect="True" Difficulty="Easy">
<Result DataType="System.Decimal" Value="16" />
</Answer>
<Answer ProblemID="0" ObjectiveID="1" IsCorrect="True" Difficulty="Easy">
<Result DataType="System.Decimal" Value="36" />
</Answer>
<Answer ProblemID="0" ObjectiveID="1" IsCorrect="True" Difficulty="Easy">
<Result DataType="System.Decimal" Value="18" />
</Answer>
<Answer ProblemID="0" ObjectiveID="2" IsCorrect="False" Difficulty="Easy">
<Result DataType="System.Decimal" Value="Null" />
</Answer>
<Answer ProblemID="0" ObjectiveID="2" IsCorrect="False" Difficulty="Easy">
<Result DataType="System.Decimal" Value="Null" />
</Answer>
<Answer ProblemID="0" ObjectiveID="2" IsCorrect="False" Difficulty="Easy">
<Result DataType="System.Decimal" Value="Null" />
</Answer>
<Answer ProblemID="0" ObjectiveID="2" IsCorrect="False" Difficulty="Easy">
<Result DataType="System.Decimal" Value="Null" />
</Answer>
<Answer ProblemID="0" ObjectiveID="2" IsCorrect="False" Difficulty="Easy">
<Result DataType="System.Decimal" Value="Null" />
</Answer>
</Answers>
好吧,我需要一些幫助來創建此查詢。 ExamProduced屬性可以通過根。然後在練習中,看看標籤摘要,在這個地方是一個歷史..所以,我需要得到那些值屬性生產是真實的。
例如,產生的兩個目標是真實的是1和2目標。然後,我需要獲得數量和補償(鍛鍊課)。然後像1和2的目標產生,每個人都有我需要得到的答案,如果價值是正確的錯誤。
在此先感謝。
編輯: 例如,在這種情況下,類應具備:
ExamProduced
+ ExamID: 1
+ Date: 10/26/2011 11:50:34 AM
+ Seed: 495
+ Exercises: { 2 items }
{
Exercise
{
+ Quantity = 5
+ IsMakeUp = False;
+ Score = 1 (it means one hundred for Answers/Summary/Objective/LastDetail => Result)
+ Answers (5 items)
{
Answer
{
+ IsCorrect = true
}
Answer
{
+ Is...
}
Ans {..}
Ans {..}
Ans {..}
}
}
Exercise
{
...
}
}
請傑夫,檢查編輯.. – Darf 2011-12-15 00:12:38