- Fixed MR-84
[castle.git] / MonoRail / TestSiteARSupport / Model / Customer.cs
blobdc79de0f0c8b433f84f0adde92b4c18fe09d39fa
1 namespace TestSiteARSupport.Model
3 using Castle.ActiveRecord;
5 [ActiveRecord]
6 public class Customer : ActiveRecordBase<Customer>
8 private int id;
9 private string name;
10 private Address homeAddress;
12 [PrimaryKey]
13 public int Id
15 get { return id; }
16 set { id = value; }
19 [Property]
20 public string Name
22 get { return name; }
23 set { name = value; }
26 [Nested]
27 public Address HomeAddress
29 get { return homeAddress; }
30 set { homeAddress = value; }
34 public class Address
36 private string street;
38 [Property]
39 public string Street
41 get { return street; }
42 set { street = value; }