コード例 #1
0
 /// <summary>
 /// Create a new tblQuestion object.
 /// </summary>
 /// <param name="questionID">Initial value of the QuestionID property.</param>
 /// <param name="questionTitle">Initial value of the QuestionTitle property.</param>
 /// <param name="questionDesc">Initial value of the QuestionDesc property.</param>
 /// <param name="datePosted">Initial value of the DatePosted property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="techID">Initial value of the TechID property.</param>
 /// <param name="viewCount">Initial value of the viewCount property.</param>
 /// <param name="replyCount">Initial value of the ReplyCount property.</param>
 public static tblQuestion CreatetblQuestion(global::System.Int32 questionID, global::System.String questionTitle, global::System.String questionDesc, global::System.DateTime datePosted, global::System.String userName, global::System.Int32 techID, global::System.Int32 viewCount, global::System.Int32 replyCount)
 {
     tblQuestion tblQuestion = new tblQuestion();
     tblQuestion.QuestionID = questionID;
     tblQuestion.QuestionTitle = questionTitle;
     tblQuestion.QuestionDesc = questionDesc;
     tblQuestion.DatePosted = datePosted;
     tblQuestion.UserName = userName;
     tblQuestion.TechID = techID;
     tblQuestion.viewCount = viewCount;
     tblQuestion.ReplyCount = replyCount;
     return tblQuestion;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblQuestions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblQuestions(tblQuestion tblQuestion)
 {
     base.AddObject("tblQuestions", tblQuestion);
 }