Example #1
0
 /// <summary>
 /// Create a new Photo object.
 /// </summary>
 /// <param name="photoID">Initial value of the PhotoID property.</param>
 public static Photo CreatePhoto(global::System.Int32 photoID)
 {
     Photo photo = new Photo();
     photo.PhotoID = photoID;
     return photo;
 }
Example #2
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);
 }