Fixing an issue with output parameters that are of type IntPtr
[castle.git] / ActiveRecord / Castle.ActiveRecord.Tests / Model / GenericModel / SurveyAssociation.cs
blob3d45e1295fe6d68634a9de45fb337f03c4172ece
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
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
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
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
17 using System;
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; }
36 /// <summary>
37 /// Get/Set the surveyId
38 /// </summary>
39 [Property()]
40 public Int32 SurveyId
42 get { return this._surveyId; }
43 set { this._surveyId = value; }
46 /// <summary>
47 /// Get/Set the companyId
48 /// </summary>
49 [Property()]
50 public Int32? CompanyId
52 get { return this._companyId; }
53 set { this._companyId = value; }
56 /// <summary>
57 /// Get/Set the departmentId
58 /// </summary>
59 [Property()]
60 public Int32? DepartmentId
62 get { return this._departmentId; }
63 set { this._departmentId = value; }
66 /// <summary>
67 /// Get/Set the userGroupId
68 /// </summary>
69 [Property()]
70 public Int32? UserGroupId
72 get { return this._userGroupId; }
73 set { this._userGroupId = value; }
76 /// <summary>
77 /// Get/Set the userProfileId
78 /// </summary>
79 [Property()]
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))));