Add CollectionName attribute for allowing explicit naming of collections
This commit is contained in:
1 parent
c50e4d086e
commit
c117bf2a7f
5 files changed
+46
-18
No files matched your search
@@ -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