-
Notifications
You must be signed in to change notification settings - Fork 7
/
person_types.cs
110 lines (88 loc) · 2.92 KB
/
person_types.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 3.02
// File : person_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace Bond.PerformanceTest.Bond
{
using System.Collections.Generic;
[System.CodeDom.Compiler.GeneratedCode("gbc", "3.02")]
public enum Gender
{
Male,
Female,
}
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "3.02")]
public partial class Passport
{
[global::Bond.Id(0)]
public string number { get; set; }
[global::Bond.Id(1)]
public string authority { get; set; }
public Passport()
: this("Bond.PerformanceTest.Bond.Passport", "Passport")
{}
protected Passport(string fullName, string name)
{
number = string.Empty;
authority = string.Empty;
}
}
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "3.02")]
public partial class PoliceRecord
{
[global::Bond.Id(0)]
public int id { get; set; }
[global::Bond.Id(1)]
public string crime { get; set; }
public PoliceRecord()
: this("Bond.PerformanceTest.Bond.PoliceRecord", "PoliceRecord")
{}
protected PoliceRecord(string fullName, string name)
{
crime = string.Empty;
}
}
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "3.02")]
public partial class Person
{
[global::Bond.Id(0)]
public string firstName { get; set; }
[global::Bond.Id(1)]
public string lastName { get; set; }
[global::Bond.Id(3)]
public uint age { get; set; }
[global::Bond.Id(4)]
public Gender gender { get; set; }
[global::Bond.Id(5), global::Bond.Type(typeof(global::Bond.Tag.nullable<Passport>))]
public Passport passport { get; set; }
[global::Bond.Id(6)]
public List<PoliceRecord> policeRecords { get; set; }
public Person()
: this("Bond.PerformanceTest.Bond.Person", "Person")
{}
protected Person(string fullName, string name)
{
firstName = string.Empty;
lastName = string.Empty;
gender = new Gender();
policeRecords = new List<PoliceRecord>();
}
}
} // Bond.PerformanceTest.Bond