Ejemplo n.º 1
0
        /// <summary>
        /// Create a new comment object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        /// <param name="description">Initial value of the description property.</param>
        /// <param name="event_id">Initial value of the event_id property.</param>
        /// <param name="user_id">Initial value of the user_id property.</param>
        public static comment Createcomment(global::System.Int64 id, global::System.String description, global::System.Int32 event_id, global::System.Int32 user_id)
        {
            comment comment = new comment();

            comment.id          = id;
            comment.description = description;
            comment.event_id    = event_id;
            comment.user_id     = user_id;
            return(comment);
        }
Ejemplo n.º 2
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(comment comment)
 {
     base.AddObject("comments", comment);
 }