Table of Contents

Class CollectionAttribute

Namespace
MongoDB.Entities
Assembly
MongoDB.Entities.dll

Specifies a custom MongoDB collection name for an entity type.

[AttributeUsage(AttributeTargets.Class)]
public class CollectionAttribute : Attribute
Inheritance
CollectionAttribute
Inherited Members

Constructors

CollectionAttribute(string)

public CollectionAttribute(string name)

Parameters

name string

Properties

Name

public string Name { get; }

Property Value

string