Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Post object.
 /// </summary>
 /// <param name="idPost">Initial value of the IdPost property.</param>
 /// <param name="titulo">Initial value of the Titulo property.</param>
 /// <param name="fecha">Initial value of the Fecha property.</param>
 public static Post CreatePost(global::System.Int32 idPost, global::System.String titulo, global::System.DateTime fecha)
 {
     Post post = new Post();
     post.IdPost = idPost;
     post.Titulo = titulo;
     post.Fecha = fecha;
     return post;
 }
Ejemplo n.º 2
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);
 }