コード例 #1
0
ファイル: Model.Designer.cs プロジェクト: 50minutos/MOC-10264
 /// <summary>
 /// Create a new Post object.
 /// </summary>
 /// <param name="cod">Initial value of the Cod property.</param>
 public static Post CreatePost(global::System.Int32 cod)
 {
     Post post = new Post();
     post.Cod = cod;
     return post;
 }
コード例 #2
0
ファイル: Model.Designer.cs プロジェクト: 50minutos/MOC-10264
 /// <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);
 }