[ActiveRecord] public class Site : ActiveRecordBase { private int _id; private string _name; private IList _departments = new List(); [PrimaryKey] public int Id { get { return _id; } set { _id = value; } } [Property] public string Name { get { return _name; } set { _name = value; } } [HasMany(typeof(Department))] public IList Departments { get { return _departments; } set { _departments = value; } } }