/// <summary> /// Create a new Photograph object. /// </summary> /// <param name="photoId">Initial value of the PhotoId property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="thumbnailBits">Initial value of the ThumbnailBits property.</param> public static Photograph CreatePhotograph(global::System.Int32 photoId, global::System.String title, global::System.Byte[] thumbnailBits) { Photograph photograph = new Photograph(); photograph.PhotoId = photoId; photograph.Title = title; photograph.ThumbnailBits = thumbnailBits; return(photograph); }
/// <summary> /// Deprecated Method for adding a new object to the Photographs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPhotographs(Photograph photograph) { base.AddObject("Photographs", photograph); }