Files
mixtape/zero.Core/Attributes/CollectionAttribute.cs
T

19 lines
440 B
C#
Raw Normal View History

2020-05-18 15:55:43 +02:00
using System;
namespace zero.Core.Attributes
{
/// <summary>
/// This attribute will allow the usage of custom collection names for Raven collections
/// </summary>
2020-05-19 14:42:51 +02:00
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class, AllowMultiple = false)]
2020-05-18 15:55:43 +02:00
public class CollectionAttribute : Attribute
{
public string Name { get; set; }
2021-03-03 12:49:06 +01:00
public CollectionAttribute(string name)
2020-05-18 15:55:43 +02:00
{
Name = name;
}
}
}