/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the BlogPosts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBlogPosts(BlogPost blogPost) { base.AddObject("BlogPosts", blogPost); }