Files
Umbraco-CMS/src/Umbraco.Infrastructure/Persistence/DatabaseAnnotations/ReferencesAttribute.cs
Mole 5bd8e32279 Align namespaces in Persistence
Made everything except for repository interface be in the Umbraco.Cms.Infrastructure.Persistence namespace
2021-02-12 13:36:50 +01:00

22 lines
570 B
C#

using System;
namespace Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
{
/// <summary>
/// Attribute that represents a reference between two tables/DTOs
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
public class ReferencesAttribute : Attribute
{
public ReferencesAttribute(Type type)
{
Type = type;
}
/// <summary>
/// Gets or sets the Type of the referenced DTO/table
/// </summary>
public Type Type { get; set; }
}
}