示例#1
0
 private QuestionSet(TestQuestionSetSet.QuestionSetsRow value) :
     base(value.Name,
          new QuestionType(
              new OptionalInteger(value.IsQuestionTypeIdNull() ? null : (Object)value.QuestionTypeId),
              new OptionalInteger(value.IsQuestionSubtypeIdNull() ? null : (Object)value.QuestionSubtypeId)))
 {
     this.value = value;
 }
示例#2
0
 public QuestionSet(TestQuestionSetSet.QuestionSetsRow value, Entity parent) :
     base(value.Name,
          new QuestionType(
              new OptionalInteger(value.IsQuestionTypeIdNull() ? null : (Object)value.QuestionTypeId),
              new OptionalInteger(value.IsQuestionSubtypeIdNull() ? null : (Object)value.QuestionSubtypeId)))
 {
     this.value = value;
     parent.AddNewChild(this);
     connection = ((Connection)Root);
 }