Ejemplo n.º 1
0
        public static PhotoPO ToPhotoPO(this Photo entity)
        {
            PhotoPO result = new PhotoPO();

            result.Id           = entity.Id;
            result.AlbumId      = entity.AlbumId;
            result.CreatedBy    = entity.CreatedBy;
            result.CreatedOn    = entity.CreatedOn;
            result.Description  = entity.Description;
            result.DownloadURI  = entity.DownloadURI;
            result.PhotoURI     = entity.PhotoURI;
            result.ThumbURI     = entity.ThumbURI;
            result.CommentCount = entity.CommentCount;
            return(result);
        }
Ejemplo n.º 2
0
        public static Photo ToPhoto(this PhotoPO po)
        {
            Photo result = new Photo();

            result.Id           = po.Id;
            result.AlbumId      = po.AlbumId;
            result.CreatedBy    = po.CreatedBy;
            result.CreatedOn    = po.CreatedOn;
            result.Description  = po.Description;
            result.DownloadURI  = po.DownloadURI;
            result.PhotoURI     = po.PhotoURI;
            result.ThumbURI     = po.ThumbURI;
            result.CommentCount = po.CommentCount;
            return(result);
        }
Ejemplo n.º 3
0
 public static PhotoPO ToPhotoPO(this Photo entity)
 {
     PhotoPO result = new PhotoPO();
     result.Id = entity.Id;
     result.AlbumId = entity.AlbumId;
     result.CreatedBy = entity.CreatedBy;
     result.CreatedOn = entity.CreatedOn;
     result.Description = entity.Description;
     result.DownloadURI = entity.DownloadURI;
     result.PhotoURI = entity.PhotoURI;
     result.ThumbURI = entity.ThumbURI;
     result.CommentCount = entity.CommentCount;
     return result;
 }