Files
Learn-WinUI-3-Second-Edition/Chapter08/Complete/MyMediaCollection/Model/MediaItem.cs
T
Alvin Ashcraft 21e22a0369 Add starter code for chapter 8
No modifications for Complete folder yet.
2023-07-23 12:06:52 -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;
}
}