using System.Collections.Generic; using Castle.ActiveRecord; namespace NetCoders.NFSCars.Model.Link { [ActiveRecord("LinksCategories")] public class LinkCategory : ActiveRecordBase { #region Properties / Methods private int _categoryId; private string _name; [PrimaryKey(PrimaryKeyType.Native, "CategoryID")] public int CategoryID { get { return _categoryId; } set { _categoryId = value; } } [Property("Name", NotNull = true)] public string Name { get { return _name; } set { _name = value; } } #endregion #region FindAll public new static List FindAll() { return new List(ActiveRecordBase.FindAll()); } #endregion } }