Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Posts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPosts(Post post)
 {
     base.AddObject("Posts", post);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new Post object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="dateAdded">Initial value of the DateAdded property.</param>
 /// <param name="postType">Initial value of the PostType property.</param>
 /// <param name="feedBackCount">Initial value of the FeedBackCount property.</param>
 public static Post CreatePost(global::System.Int32 id, global::System.String title, global::System.DateTime dateAdded, global::System.Int32 postType, global::System.Int32 feedBackCount)
 {
     Post post = new Post();
     post.ID = id;
     post.Title = title;
     post.DateAdded = dateAdded;
     post.PostType = postType;
     post.FeedBackCount = feedBackCount;
     return post;
 }