/// <summary> /// Deprecated Method for adding a new object to the Questions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToQuestions(Question question) { base.AddObject("Questions", question); }
public int AddQuestion(Question ques) { model.Questions.AddObject(ques); return model.SaveChanges(); }
/// <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; }