Пример #1
0
 /// <summary>
 /// Create a new Post object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="author">Initial value of the author property.</param>
 /// <param name="date_created">Initial value of the date_created property.</param>
 /// <param name="text">Initial value of the text property.</param>
 /// <param name="thread">Initial value of the thread property.</param>
 public static Post CreatePost(global::System.Int32 id, global::System.Int32 author, global::System.DateTime date_created, global::System.String text, global::System.Int32 thread)
 {
     Post post = new Post();
     post.id = id;
     post.author = author;
     post.date_created = date_created;
     post.text = text;
     post.thread = thread;
     return post;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Post EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPost(Post post)
 {
     base.AddObject("Post", post);
 }