コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Photos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPhotos(Photo photo)
 {
     base.AddObject("Photos", photo);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Photo object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="imageURL">Initial value of the ImageURL property.</param>
 public static Photo CreatePhoto(global::System.Int32 id, global::System.String imageURL)
 {
     Photo photo = new Photo();
     photo.Id = id;
     photo.ImageURL = imageURL;
     return photo;
 }