示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Questions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToQuestions(Question question)
 {
     base.AddObject("Questions", question);
 }
示例#2
0
 public int AddQuestion(Question ques)
 {
     model.Questions.AddObject(ques);
     return model.SaveChanges();
 }
示例#3
0
 /// <summary>
 /// Create a new Question object.
 /// </summary>
 /// <param name="qID">Initial value of the QID property.</param>
 public static Question CreateQuestion(global::System.Int32 qID)
 {
     Question question = new Question();
     question.QID = qID;
     return question;
 }