using Castle.ActiveRecord; using System; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpProcessList")] public class CeErpProcessList : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _title = ""; /// /// /// [Property] public string Title { get { return _title; } set { _title = value; } } private string _con = ""; /// /// /// [Property] public string Con { get { return _con; } set { _con = value; } } /// /// /// [Property] public DateTime? CreatedTime { get; set; } private int _createUserId = 0; /// ///Ìí¼ÓÕßID /// [Property] public int CreateUserId { get { return _createUserId; } set { _createUserId = value; } } private int _orgId = 0; /// ///²¿ÃÅID /// [Property] public int OrgId { get { return _orgId; } set { _orgId = value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpProcessList where id=" + id); ExecuteNonQuery(sql.ToString()); } } }