/// <summary> /// Deprecated Method for adding a new object to the Photos EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPhotos(Photo photo) { base.AddObject("Photos", photo); }
/// <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; }