Class DocumentMappingAttribute
Marks a property on a collection document as a special field for the database's use.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public class DocumentMappingAttribute : Attribute, _Attribute
- Inheritance
-
DocumentMappingAttribute
- Implements
- Inherited Members
Constructors
DocumentMappingAttribute(DocumentMappingField)
Initializes a new instance of the DocumentMappingAttribute class.
public DocumentMappingAttribute(DocumentMappingField field)
Parameters
fieldDocumentMappingFieldThe type of special field this property is mapped to
Properties
Field
The type of special field this property is mapped to
public DocumentMappingField Field { get; }