1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.ActiveRecord
.Tests
.Model
.GenericModel
19 [ActiveRecord("SurveyAssociation")]
20 public class SurveyAssociation
: ActiveRecordBase
22 private Int32 _surveyAssociationId
;
23 private Int32 _surveyId
;
24 private Int32
? _companyId
;
25 private Int32
? _departmentId
;
26 private Int32
? _userGroupId
;
27 private Int32
? _userProfileId
;
29 [PrimaryKey(PrimaryKeyType
.Native
)]
30 public int SurveyAssociationId
32 get { return this._surveyAssociationId; }
33 set { this._surveyAssociationId = value; }
37 /// Get/Set the surveyId
42 get { return this._surveyId; }
43 set { this._surveyId = value; }
47 /// Get/Set the companyId
50 public Int32
? CompanyId
52 get { return this._companyId; }
53 set { this._companyId = value; }
57 /// Get/Set the departmentId
60 public Int32
? DepartmentId
62 get { return this._departmentId; }
63 set { this._departmentId = value; }
67 /// Get/Set the userGroupId
70 public Int32
? UserGroupId
72 get { return this._userGroupId; }
73 set { this._userGroupId = value; }
77 /// Get/Set the userProfileId
80 public Int32
? UserProfileId
82 get { return this._userProfileId; }
83 set { this._userProfileId = value; }
86 public static SurveyAssociation
[] FindAll()
88 return ((SurveyAssociation
[]) (ActiveRecordBase
.FindAll(typeof (SurveyAssociation
))));