コード例 #1
0
ファイル: POExtensions.cs プロジェクト: ktei/MySpace
        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);
        }
コード例 #2
0
ファイル: POExtensions.cs プロジェクト: ktei/MySpace
        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);
        }
コード例 #3
0
ファイル: POExtensions.cs プロジェクト: ktei/MySpace
 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;
 }