| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using Castle.ActiveRecord;
- using System;
- using System.Text;
- namespace BizCom
- {
- [ActiveRecord("CE_ErpMethod")]
- public class CeErpMethod : ComBase<CeErpMethod>
- {
- /// <summary>
- ///
- /// </summary>
- [PrimaryKey(PrimaryKeyType.Native)]
- public int id { get; set; }
- private string _con = "";
- /// <summary>
- ///´¦Àí·½°¸
- /// </summary>
- [Property]
- public string con
- {
- get { return _con; }
- set { _con = value; }
- }
- /// <summary>
- ///
- /// </summary>
- [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());
- }
- }
- }
|