/// <summary> /// Create a new Blog object. /// </summary> /// <param name="blogID">Initial value of the BlogID property.</param> /// <param name="datePosted">Initial value of the DatePosted property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="blogEntry">Initial value of the BlogEntry property.</param> public static Blog CreateBlog(global::System.Int32 blogID, global::System.DateTime datePosted, global::System.String title, global::System.String blogEntry) { Blog blog = new Blog(); blog.BlogID = blogID; blog.DatePosted = datePosted; blog.Title = title; blog.BlogEntry = blogEntry; return blog; }
/// <summary> /// Deprecated Method for adding a new object to the Blogs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBlogs(Blog blog) { base.AddObject("Blogs", blog); }