Fauna .NET Driver 0.1.0-beta
 
Loading...
Searching...
No Matches
Attributes.cs
Go to the documentation of this file.
2
6public enum FaunaType
7{
8 Int,
9 Long,
10 Double,
11 String,
12 Date,
13 Time,
14 Boolean,
15}
16
20[AttributeUsage(AttributeTargets.Class)]
21public class ObjectAttribute : Attribute
22{
23}
24
28[AttributeUsage(AttributeTargets.Property)]
29public class FieldAttribute : Attribute
30{
31 internal readonly string? Name;
32 internal readonly FaunaType? Type;
33
34 public FieldAttribute() { }
35
36 public FieldAttribute(string name)
37 {
38 Name = name;
39 }
40
42 {
43 Type = type;
44 }
45
46 public FieldAttribute(string name, FaunaType type)
47 {
48 Name = name;
49 Type = type;
50 }
51}
Attribute used to specify properties of a field in a Fauna object.
Definition Attributes.cs:30
FieldAttribute(string name, FaunaType type)
Definition Attributes.cs:46
Attribute used to indicate that a class represents a Fauna document or struct.
Definition Attributes.cs:22
FaunaType
Enumerates the different types of data that can be stored in Fauna.
Definition Attributes.cs:7