Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Comments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToComments(Comments comments)
 {
     base.AddObject("Comments", comments);
 }
Пример #2
0
 /// <summary>
 /// Create a new Comments object.
 /// </summary>
 /// <param name="c_id">Initial value of the c_id property.</param>
 /// <param name="c_from_username">Initial value of the c_from_username property.</param>
 /// <param name="c_to_username">Initial value of the c_to_username property.</param>
 /// <param name="c_comment_text">Initial value of the c_comment_text property.</param>
 /// <param name="c_date_posted">Initial value of the c_date_posted property.</param>
 /// <param name="c_approved">Initial value of the c_approved property.</param>
 public static Comments CreateComments(global::System.Int32 c_id, global::System.String c_from_username, global::System.String c_to_username, global::System.String c_comment_text, global::System.DateTime c_date_posted, global::System.Boolean c_approved)
 {
     Comments comments = new Comments();
     comments.c_id = c_id;
     comments.c_from_username = c_from_username;
     comments.c_to_username = c_to_username;
     comments.c_comment_text = c_comment_text;
     comments.c_date_posted = c_date_posted;
     comments.c_approved = c_approved;
     return comments;
 }