/// <summary> /// Create a new Post object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="salary">Initial value of the Salary property.</param> public static Post CreatePost(global::System.Int32 id, global::System.String name, global::System.Decimal salary) { Post post = new Post(); post.Id = id; post.Name = name; post.Salary = salary; return post; }
/// <summary> /// Deprecated Method for adding a new object to the Posts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPosts(Post post) { base.AddObject("Posts", post); }