Files
MilkyShots/Butter/Dtos/Album/AlbumFullDto.cs
T
REDCODE d602d2d34b feat: add CoverAssetId to albums with resolution data in full DTO
- Add CoverAssetId FK and CoverAsset navigation to Album model
- Add AlbumAssetPreviewDto with resolution/thumbnail info
- Extend AlbumPreviewDto/FullDto with PersonName, CoverAssetId, AssetCount
- Add CoverAssetId to AlbumCreateDto and AlbumUpdateDto
- Update AlbumMapper to populate new fields from eager-loaded relations
- Add EF migration for CoverAssetId column
2026-07-08 13:11:20 +02:00

15 lines
502 B
C#

namespace Butter.Dtos.Album;
/// <summary>
/// Represents the full details of an album, including its associated assets.
/// </summary>
public class AlbumFullDto : AlbumPreviewDto {
/// <summary>
/// Gets or sets the list of asset IDs in the album.
/// </summary>
public List<Guid> Images { get; set; } = [];
/// <summary>
/// Gets or sets the asset preview information for rendering.
/// </summary>
public List<AlbumAssetPreviewDto> AssetPreviews { get; set; } = [];
}