using Castle.ActiveRecord; using System; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpMethod")] public class CeErpMethod : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int id { get; set; } private string _con = ""; /// ///´¦Àí·½°¸ /// [Property] public string con { get { return _con; } set { _con = value; } } /// /// /// [Property] public DateTime? addTime { get; set; } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpMethod where id=" + id); ExecuteNonQuery(sql.ToString()); } } }