Files
Learn-WinUI-3-Second-Edition/Chapter14/MyMediaCollection/Model/MediaItem.cs
T
2023-09-23 15:10:27 -04:00

17 lines
446 B
C#

using Dapper.Contrib.Extensions;
using MyMediaCollection.Enums;
namespace MyMediaCollection.Model
{
public class MediaItem
{
[Key]
public int Id { get; set; }
public string Name { get; set; }
public ItemType MediaType { get; set; }
[Computed]
public Medium MediumInfo { get; set; }
public LocationType Location { get; set; }
public int MediumId => MediumInfo.Id;
}
}