예제 #1
0
 /// <summary>
 /// Create a new BlogPost object.
 /// </summary>
 /// <param name="blogPostId">Initial value of the BlogPostId property.</param>
 /// <param name="postDate">Initial value of the PostDate property.</param>
 public static BlogPost CreateBlogPost(global::System.Int32 blogPostId, global::System.DateTime postDate)
 {
     BlogPost blogPost = new BlogPost();
     blogPost.BlogPostId = blogPostId;
     blogPost.PostDate = postDate;
     return blogPost;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BlogPosts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBlogPosts(BlogPost blogPost)
 {
     base.AddObject("BlogPosts", blogPost);
 }