예제 #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);
 }
예제 #2
0
 /// <summary>
 /// Create a new Post object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="needed">Initial value of the Needed property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="postDate">Initial value of the PostDate property.</param>
 /// <param name="showMailInPost">Initial value of the ShowMailInPost property.</param>
 /// <param name="locationId">Initial value of the LocationId property.</param>
 /// <param name="creatorId">Initial value of the CreatorId property.</param>
 /// <param name="categoryId">Initial value of the CategoryId property.</param>
 public static Post CreatePost(global::System.Int32 id, global::System.Boolean needed, global::System.String title, global::System.String description, global::System.DateTime postDate, global::System.Boolean showMailInPost, global::System.Int32 locationId, global::System.Int32 creatorId, global::System.Int32 categoryId)
 {
     Post post = new Post();
     post.Id = id;
     post.Needed = needed;
     post.Title = title;
     post.Description = description;
     post.PostDate = postDate;
     post.ShowMailInPost = showMailInPost;
     post.LocationId = locationId;
     post.CreatorId = creatorId;
     post.CategoryId = categoryId;
     return post;
 }