Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IndexAttribute.cs
1
using
System;
2
3
namespace
Waher.Persistence.Attributes
4
{
8
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple =
true
, Inherited =
true
)]
9
public
class
IndexAttribute
: Attribute
10
{
11
private
readonly
string
[] fieldNames;
12
18
public
IndexAttribute
(params
string
[]
FieldNames
)
19
{
20
if
(
FieldNames
.Length == 0)
21
throw
new
ArgumentException(
"No field names listed."
, nameof(
FieldNames
));
22
23
this.fieldNames =
FieldNames
;
24
}
25
30
public
string
[]
FieldNames
=> this.fieldNames;
31
}
32
}
Waher.Persistence.Attributes.IndexAttribute
This attribute defines a compound index for the collection holding objects of the corresponding class...
Definition:
IndexAttribute.cs:10
Waher.Persistence.Attributes.IndexAttribute.FieldNames
string[] FieldNames
Names of the fields to build the index on. Prefix field names with a hyphen (-) to illustrate descend...
Definition:
IndexAttribute.cs:30
Waher.Persistence.Attributes.IndexAttribute.IndexAttribute
IndexAttribute(params string[] FieldNames)
This attribute defines a compound index for the collection holding objects of the corresponding class...
Definition:
IndexAttribute.cs:18
Waher.Persistence.Attributes
Definition:
ArchivingTimeAttribute.cs:4
IoTGateway
Persistence
Waher.Persistence
Attributes
IndexAttribute.cs
Generated by
1.9.5