-
Notifications
You must be signed in to change notification settings - Fork 76
/
DancingGoatMvcContactUs.generated.cs
228 lines (192 loc) · 4.5 KB
/
DancingGoatMvcContactUs.generated.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
//--------------------------------------------------------------------------------------------------
// <auto-generated>
//
// This code was generated by code generator tool.
//
// To customize the code use your own partial class. For more info about how to use and customize
// the generated code see the documentation at http://docs.kentico.com.
//
// </auto-generated>
//--------------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using CMS;
using CMS.Helpers;
using CMS.DataEngine;
using CMS.OnlineForms.Types;
using CMS.OnlineForms;
[assembly: RegisterBizForm(DancingGoatMvcContactUsItem.CLASS_NAME, typeof(DancingGoatMvcContactUsItem))]
namespace CMS.OnlineForms.Types
{
/// <summary>
/// Represents a content item of type DancingGoatMvcContactUsItem.
/// </summary>
public partial class DancingGoatMvcContactUsItem : BizFormItem
{
#region "Constants and variables"
/// <summary>
/// The name of the data class.
/// </summary>
public const string CLASS_NAME = "BizForm.DancingGoatMvcContactUs";
/// <summary>
/// The instance of the class that provides extended API for working with DancingGoatMvcContactUsItem fields.
/// </summary>
private readonly DancingGoatMvcContactUsItemFields mFields;
#endregion
#region "Properties"
/// <summary>
/// First name.
/// </summary>
[DatabaseField]
public string UserFirstName
{
get
{
return ValidationHelper.GetString(GetValue("UserFirstName"), "");
}
set
{
SetValue("UserFirstName", value);
}
}
/// <summary>
/// Last name.
/// </summary>
[DatabaseField]
public string UserLastName
{
get
{
return ValidationHelper.GetString(GetValue("UserLastName"), "");
}
set
{
SetValue("UserLastName", value);
}
}
/// <summary>
/// Email address.
/// </summary>
[DatabaseField]
public string UserEmail
{
get
{
return ValidationHelper.GetString(GetValue("UserEmail"), "");
}
set
{
SetValue("UserEmail", value);
}
}
/// <summary>
/// Message.
/// </summary>
[DatabaseField]
public string UserMessage
{
get
{
return ValidationHelper.GetString(GetValue("UserMessage"), "");
}
set
{
SetValue("UserMessage", value);
}
}
/// <summary>
/// Gets an object that provides extended API for working with DancingGoatMvcContactUsItem fields.
/// </summary>
public DancingGoatMvcContactUsItemFields Fields
{
get
{
return mFields;
}
}
/// <summary>
/// Provides extended API for working with DancingGoatMvcContactUsItem fields.
/// </summary>
public partial class DancingGoatMvcContactUsItemFields
{
/// <summary>
/// The content item of type DancingGoatMvcContactUsItem that is a target of the extended API.
/// </summary>
private readonly DancingGoatMvcContactUsItem mInstance;
/// <summary>
/// Initializes a new instance of the <see cref="CMS.OnlineForms.Types.DancingGoatMvcContactUsItem+DancingGoatMvcContactUsItemFields" /> class with the specified content item of type DancingGoatMvcContactUsItem.
/// </summary>
/// <param name="instance">The content item of type DancingGoatMvcContactUsItem that is a target of the extended API.</param>
public DancingGoatMvcContactUsItemFields(DancingGoatMvcContactUsItem instance)
{
mInstance = instance;
}
/// <summary>
/// First name.
/// </summary>
public string UserFirstName
{
get
{
return mInstance.UserFirstName;
}
set
{
mInstance.UserFirstName = value;
}
}
/// <summary>
/// Last name.
/// </summary>
public string UserLastName
{
get
{
return mInstance.UserLastName;
}
set
{
mInstance.UserLastName = value;
}
}
/// <summary>
/// Email address.
/// </summary>
public string UserEmail
{
get
{
return mInstance.UserEmail;
}
set
{
mInstance.UserEmail = value;
}
}
/// <summary>
/// Message.
/// </summary>
public string UserMessage
{
get
{
return mInstance.UserMessage;
}
set
{
mInstance.UserMessage = value;
}
}
}
#endregion
#region "Constructors"
/// <summary>
/// Initializes a new instance of the <see cref="CMS.OnlineForms.Types.DancingGoatMvcContactUsItem" /> class.
/// </summary>
public DancingGoatMvcContactUsItem() : base(CLASS_NAME)
{
mFields = new DancingGoatMvcContactUsItemFields(this);
}
#endregion
}
}