Fauna .NET Driver
0.1.0-beta
Loading...
Searching...
No Matches
repo.git
Fauna
Mapping
Attributes.cs
Go to the documentation of this file.
1
namespace
Fauna.Mapping.Attributes
;
2
6
public
enum
FaunaType
7
{
8
Int
,
9
Long
,
10
Double
,
11
String
,
12
Date
,
13
Time
,
14
Boolean
,
15
}
16
20
[AttributeUsage(AttributeTargets.Class)]
21
public
class
ObjectAttribute
: Attribute
22
{
23
}
24
28
[AttributeUsage(AttributeTargets.Property)]
29
public
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
41
public
FieldAttribute
(
FaunaType
type)
42
{
43
Type = type;
44
}
45
46
public
FieldAttribute
(
string
name,
FaunaType
type)
47
{
48
Name = name;
49
Type = type;
50
}
51
}
Fauna.Mapping.Attributes.FieldAttribute
Attribute used to specify properties of a field in a Fauna object.
Definition
Attributes.cs:30
Fauna.Mapping.Attributes.FieldAttribute.FieldAttribute
FieldAttribute(string name, FaunaType type)
Definition
Attributes.cs:46
Fauna.Mapping.Attributes.FieldAttribute.FieldAttribute
FieldAttribute()
Definition
Attributes.cs:34
Fauna.Mapping.Attributes.FieldAttribute.FieldAttribute
FieldAttribute(string name)
Definition
Attributes.cs:36
Fauna.Mapping.Attributes.FieldAttribute.FieldAttribute
FieldAttribute(FaunaType type)
Definition
Attributes.cs:41
Fauna.Mapping.Attributes.ObjectAttribute
Attribute used to indicate that a class represents a Fauna document or struct.
Definition
Attributes.cs:22
Fauna.Mapping.Attributes
Definition
Attributes.cs:1
Fauna.Mapping.Attributes.FaunaType
FaunaType
Enumerates the different types of data that can be stored in Fauna.
Definition
Attributes.cs:7
Fauna.Mapping.Attributes.FaunaType.Int
@ Int
Fauna.Mapping.Attributes.FaunaType.String
@ String
Fauna.Mapping.Attributes.FaunaType.Boolean
@ Boolean
Fauna.Mapping.Attributes.FaunaType.Date
@ Date
Fauna.Mapping.Attributes.FaunaType.Long
@ Long
Fauna.Mapping.Attributes.FaunaType.Time
@ Time
Fauna.Mapping.Attributes.FaunaType.Double
@ Double
Generated by
1.9.8