Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Photo object.
 /// </summary>
 /// <param name="photoID">Initial value of the PhotoID property.</param>
 /// <param name="url">Initial value of the Url property.</param>
 public static Photo CreatePhoto(global::System.Guid photoID, global::System.String url)
 {
     Photo photo = new Photo();
     photo.PhotoID = photoID;
     photo.Url = url;
     return photo;
 }
Ejemplo n.º 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);
 }