Chapter 14 samples

This commit is contained in:
Alvin Ashcraft
2023-09-23 15:10:27 -04:00
parent 800f0c3a8a
commit 7ec132eee3
52 changed files with 2195 additions and 0 deletions
@@ -0,0 +1,17 @@
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;
}
}