using System; using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("S_BuChaJia")] public class S_BuChaJia : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _ctid=""; /// /// /// [Property] public string ctid { get{ return _ctid; } set{ _ctid=value; } } /// /// /// [Property] public DateTime? addtime { get; set; } private string _dotype=""; /// /// /// [Property] public string dotype { get{ return _dotype; } set{ _dotype=value; } } private int _userId=0; /// /// /// [Property] public int userId { get{ return _userId; } set{ _userId=value; } } private int _refundState=0; /// /// /// [Property] public int refundState { get{ return _refundState; } set{ _refundState=value; } } private int _orderState=0; /// /// /// [Property] public int orderState { get{ return _orderState; } set{ _orderState=value; } } private string _posCode=""; /// /// /// [Property] public string posCode { get{ return _posCode; } set{ _posCode=value; } } private string _comCode=""; /// /// /// [Property] public string comCode { get{ return _comCode; } set{ _comCode=value; } } private string _outSid=""; /// /// /// [Property] public string outSid { get{ return _outSid; } set{ _outSid=value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from S_BuChaJia where id=" + id); ExecuteNonQuery(sql.ToString()); } } }