示例#1
0
 /// <summary>
 /// Create a new Post object.
 /// </summary>
 /// <param name="postId">Initial value of the PostId property.</param>
 /// <param name="postCategoryId">Initial value of the PostCategoryId property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="postContent">Initial value of the PostContent property.</param>
 public static Post CreatePost(global::System.Int32 postId, global::System.Int32 postCategoryId, global::System.String title, global::System.String postContent)
 {
     Post post = new Post();
     post.PostId = postId;
     post.PostCategoryId = postCategoryId;
     post.Title = title;
     post.PostContent = postContent;
     return post;
 }
示例#2
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);
 }