Section navigation

Public classSealed LeanStoredAttribute

Namespace
Rowles.LeanCorpus.Mapping.Attributes
Assembly
Rowles.LeanCorpus.dll

Maps a stored-only property to either a StoredField (for string) or a BinaryField (for byte[]). The field is not indexed.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class LeanStoredAttribute : Attribute
Inheritance
LeanStoredAttribute

Public constructor LeanStoredAttribute(string)

Initialises a new LeanStoredAttribute.

Public property Name

The field name used at indexing time.

Public property Required

Whether the field is required by the generated schema.