2021-11-20 13:52:28 +01:00
|
|
|
namespace zero.Persistence;
|
2021-11-19 14:59:24 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This attribute will allow the usage of custom collection names for Raven collections
|
|
|
|
|
/// </summary>
|
|
|
|
|
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class, AllowMultiple = false)]
|
|
|
|
|
public class RavenCollectionAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
public RavenCollectionAttribute(string name)
|
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
}
|
|
|
|
|
}
|