using System;
namespace MongoDbGenericRepository.Attributes
{
///
/// This attribute allows you to specify of the name of the collection.
/// Added at commit c117bf2a7fee378f1e02199dea9b2023a7089ee2 by https://github.com/Etchelon
/// who has included the CollectionName attribute into the repo to give another choice to the user on how
/// to name their collections.
/// The attribute takes precedence of course, and if not present the library will fall back to your Pluralize method.
///
[AttributeUsage(AttributeTargets.Class)]
public class CollectionNameAttribute : Attribute
{
///
/// The name of the collection in which your documents are stored.
///
public string Name { get; set; }
///
/// The constructor.
///
/// The name of the collection.
public CollectionNameAttribute(string name)
{
this.Name = name;
}
}
}