/// <summary> /// Deprecated Method for adding a new object to the Comments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToComments(Comment comment) { base.AddObject("Comments", comment); }
/// <summary> /// Create a new Comment object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="url">Initial value of the Url property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="content">Initial value of the Content property.</param> public static Comment CreateComment(global::System.Int32 id, global::System.String name, global::System.String url, global::System.String email, global::System.String content) { Comment comment = new Comment(); comment.Id = id; comment.Name = name; comment.Url = url; comment.Email = email; comment.Content = content; return comment; }