23 lines
571 B
C#
23 lines
571 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MongoRepository.Attributes
|
|
{
|
|
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
|
public class BsonCollectionAttribute : Attribute
|
|
{
|
|
public string CollectionName { get; }
|
|
public string DataBaseName { get; }
|
|
|
|
public BsonCollectionAttribute(string collectionName, string dataBaseName)
|
|
{
|
|
CollectionName = collectionName;
|
|
DataBaseName = dataBaseName;
|
|
}
|
|
}
|
|
}
|