/// <summary> /// Deprecated Method for adding a new object to the Pictures EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPictures(Picture picture) { base.AddObject("Pictures", picture); }
/// <summary> /// Create a new Picture object. /// </summary> /// <param name="pictureId">Initial value of the PictureId property.</param> /// <param name="width">Initial value of the Width property.</param> /// <param name="height">Initial value of the Height property.</param> /// <param name="fileName">Initial value of the FileName property.</param> /// <param name="path">Initial value of the Path property.</param> /// <param name="uploadedDateTime">Initial value of the UploadedDateTime property.</param> public static Picture CreatePicture(global::System.Int32 pictureId, global::System.Int32 width, global::System.Int32 height, global::System.String fileName, global::System.String path, global::System.DateTime uploadedDateTime) { Picture picture = new Picture(); picture.PictureId = pictureId; picture.Width = width; picture.Height = height; picture.FileName = fileName; picture.Path = path; picture.UploadedDateTime = uploadedDateTime; return picture; }