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); }
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); }
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; }