/// <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);
 }
 /// <summary>
 /// Create a new Photo object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="editDate">Initial value of the EditDate property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="imageUrl">Initial value of the ImageUrl property.</param>
 /// <param name="photographer">Initial value of the Photographer property.</param>
 /// <param name="caption">Initial value of the Caption property.</param>
 /// <param name="isHidden">Initial value of the IsHidden property.</param>
 /// <param name="systemEditDate">Initial value of the SystemEditDate property.</param>
 /// <param name="systemCreateDate">Initial value of the SystemCreateDate property.</param>
 /// <param name="physicalPath">Initial value of the PhysicalPath property.</param>
 /// <param name="ignoreFlags">Initial value of the IgnoreFlags property.</param>
 /// <param name="isThumbnail">Initial value of the IsThumbnail property.</param>
 /// <param name="imageType">Initial value of the ImageType property.</param>
 public static Photo CreatePhoto(global::System.Int64 id, global::System.DateTime editDate, global::System.DateTime createDate, global::System.String imageUrl, global::System.String photographer, global::System.String caption, global::System.Boolean isHidden, global::System.DateTime systemEditDate, global::System.DateTime systemCreateDate, global::System.String physicalPath, global::System.Boolean ignoreFlags, global::System.Boolean isThumbnail, global::System.Int32 imageType)
 {
     Photo photo = new Photo();
     photo.Id = id;
     photo.EditDate = editDate;
     photo.CreateDate = createDate;
     photo.ImageUrl = imageUrl;
     photo.Photographer = photographer;
     photo.Caption = caption;
     photo.IsHidden = isHidden;
     photo.SystemEditDate = systemEditDate;
     photo.SystemCreateDate = systemCreateDate;
     photo.PhysicalPath = physicalPath;
     photo.IgnoreFlags = ignoreFlags;
     photo.IsThumbnail = isThumbnail;
     photo.ImageType = imageType;
     return photo;
 }
예제 #3
0
 //=========================================================
 // PRIVATE FUNCTIONS
 //=========================================================
 protected ProviderPhoto(Photo aPhoto)
     : base(aPhoto)
 {
     LoadImage();
 }
예제 #4
0
 protected static new ProviderPhoto _EntityToProvider(Photo photoEntity)
 {
     return new ProviderPhoto(photoEntity);
 }
예제 #5
0
 //=========================================================
 // PRIVATE FUNCTIONS
 //=========================================================
 protected internal ProviderPhotoRecord(Photo aPhoto)
     : base(aPhoto)
 {
 }
예제 #6
0
 protected override void EntityClear()
 {
     _entityPhoto = new Photo();
     _entityPhoto.Id = -1;
     _entityPhoto.SystemCreateDate = new DateTime();
     _entityPhoto.SystemEditDate = new DateTime();
     _entityPhoto.CreateDate = new DateTime();
     _entityPhoto.EditDate = new DateTime();
     _entityPhoto.ImageUrl = String.Empty;
     _entityPhoto.PhysicalPath = String.Empty;
     _entityPhoto.IsThumbnail = false;
     _entityPhoto.ImageType = (int)ImageTypeEnum.Original;
     _entityPhoto.OriginalId = null;
     _entityPhoto.Photographer = String.Empty;
     _entityPhoto.Caption = String.Empty;
     _entityPhoto.IsHidden = false;
     _entityPhoto.DisplayWidth = null;
     _entityPhoto.DisplayHeight = null;
     _entityPhoto.IgnoreFlags = false;
 }
예제 #7
0
 internal static ProviderPhotoRecord _EntityToProvider(Photo photoEntity)
 {
     return new ProviderPhotoRecord(photoEntity);
 }