Added RedirectUsingNamedRoute
[castle.git] / ActiveRecord / Castle.ActiveRecord.Tests / Model / GenericModel / NullableModel.Generics.cs
blob4ac580a339f62925704ba5da5f4e4130f540d1b6
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]
20 public class GenericNullableModel : ActiveRecordBase<GenericNullableModel>
22 private int id;
23 private Int32? age;
24 private DateTime? completion;
25 private Boolean? accepted;
27 public GenericNullableModel() {}
29 [PrimaryKey]
30 public int Id
32 get { return id; }
33 set { id = value; }
36 [Property]
37 public Int32? Age
39 get { return age; }
40 set { age = value; }
43 [Property]
44 public DateTime? Completion
46 get { return completion; }
47 set { completion = value; }
50 [Property]
51 public Boolean? Accepted
53 get { return accepted; }
54 set { accepted = value; }