Add CollectionName attribute for allowing explicit naming of collections
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace MongoDbGenericRepository.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class CollectionNameAttribute : Attribute
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public CollectionNameAttribute(string name)
|
||||
{
|
||||
this.Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user