Kyoo/Kyoo.Common/Models/Attributes/RelationAttributes.cs
2021-03-16 02:33:31 +01:00

20 lines
445 B
C#

using System;
namespace Kyoo.Models.Attributes
{
[AttributeUsage(AttributeTargets.Property, Inherited = false)]
public class EditableRelationAttribute : Attribute { }
[AttributeUsage(AttributeTargets.Property)]
public class LoadableRelationAttribute : Attribute
{
public string RelationID { get; }
public LoadableRelationAttribute() {}
public LoadableRelationAttribute(string relationID)
{
RelationID = relationID;
}
}
}