using System; using System.Linq.Expressions; namespace Kyoo.Models { /// /// ID and link of an item on an external provider. /// /// public class MetadataID : Link where T : class, IResource { /// /// The ID of the resource on the external provider. /// public string DataID { get; set; } /// /// The URL of the resource on the external provider. /// public string Link { get; set; } /// /// The expression to retrieve the unique ID of a MetadataID. This is an aggregate of the two resources IDs. /// public new static Expression, object>> PrimaryKey { get { return x => new {First = x.FirstID, Second = x.SecondID}; } } } }