/// <summary> /// Create a new Answer object. /// </summary> /// <param name="answerId">Initial value of the AnswerId property.</param> /// <param name="questionId">Initial value of the QuestionId property.</param> /// <param name="sortOrder">Initial value of the SortOrder property.</param> /// <param name="text">Initial value of the Text property.</param> /// <param name="contractText">Initial value of the ContractText property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static Answer CreateAnswer(global::System.Int32 answerId, global::System.Int32 questionId, global::System.Int32 sortOrder, global::System.String text, global::System.String contractText, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted) { Answer answer = new Answer(); answer.AnswerId = answerId; answer.QuestionId = questionId; answer.SortOrder = sortOrder; answer.Text = text; answer.ContractText = contractText; answer.CreateDate = createDate; answer.CreatedBy = createdBy; answer.IsDeleted = isDeleted; return answer; }
/// <summary> /// Deprecated Method for adding a new object to the Answers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAnswers(Answer answer) { base.AddObject("Answers", answer); }