Add CollectionName attribute for allowing explicit naming of collections

This commit is contained in:
Andrea Bertoldo committed 2018-02-05 14:48:26 +01:00
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;
}
}
}