7[AttributeUsage(AttributeTargets.Class)]
8[Obsolete(
"Object attribute is no longer used and will not influence serialization.")]
16[AttributeUsage(AttributeTargets.Property)]
34 public readonly
string?
Name;
50[AttributeUsage(AttributeTargets.Property)]
69[AttributeUsage(AttributeTargets.Property)]
72 private const string FieldName =
"id";
92[AttributeUsage(AttributeTargets.Property)]
95 private const string FieldName =
"coll";
108[AttributeUsage(AttributeTargets.Property)]
111 private const string FieldName =
"ts";
An abstract type for attributing user-defined document classes.
readonly? string Name
The name of the field.
readonly FieldType Type
The type of the field.
Attribute used to specify the coll (Collection) field on a Fauna document. The associated field will ...
CollectionAttribute()
Initializes a CollectionAttribute. The Fauna field name will always be coll for this attribute.
Attribute used to specify fields on a Fauna document or struct.
FieldAttribute()
Initializes a FieldAttribute of type Field with no name override. The name is inferred.
FieldAttribute(string name)
Initializes a FieldAttribute of type Field with a name.
Attribute used to specify the id field on a Fauna document. The associated field will be ignored duri...
IdAttribute()
Initializes a IdAttribute, indicating Fauna will generate the ID.
IdAttribute(bool isClientGenerated)
Initializes a IdAttribute.
Attribute used to indicate that a field should be ignored during serialization and deserialization.
IgnoreAttribute()
Initializes an instance of an IgnoreAttribute.
Attribute used to indicate that a class represents a Fauna document or struct.
Attribute used to specify the ts field on a Fauna document. The associated field will be ignored duri...
TsAttribute()
Initializes a TsAttribute. The Fauna field name will always be ts for this attribute.
FieldType
An enum for the field type, used with concrete implementations of BaseFieldAttribute.
@ ClientGeneratedId
Indicates the document ID is client-generated.
@ Ts
Indicates the field is the ts field of the document.
@ Field
Indicates the field contains user-defined data for the document.
@ Coll
Indicates the field is the coll (collection) field of the document.
@ ServerGeneratedId
Indicates the document ID is Fauna-generated.