Files
Learn-WinUI-3-Second-Edition/Chapter07/Complete/MyMediaCollection/Model/MediaItem.cs
T
2023-07-15 14:15:37 -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;
}
}