using Castle.ActiveRecord; using System; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpMailInfo")] public class CeErpMailInfo : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _name = ""; /// ///快递名字 /// [Property] public string name { get { return _name; } set { _name = value; } } private string _code = ""; /// ///快递编号 /// [Property] public string code { get { return _code; } set { _code = value; } } private string _cpCode = ""; /// ///点三系统快递编号 /// [Property] public string cpCode { get { return _cpCode; } set { _cpCode = value; } } /// /// /// [Property] public DateTime? addTime { get; set; } private int _isAuth = 0; /// ///是否授权 /// [Property] public int isAuth { get { return _isAuth; } set { _isAuth = value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpMailInfo where id=" + id); ExecuteNonQuery(sql.ToString()); } } }