| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using Castle.ActiveRecord;
- using System.Text;
- namespace BizCom
- {
- [ActiveRecord("S_CdrToPng")]
- public class S_CdrToPng : ComBase<S_CdrToPng>
- {
- private int _iD=0;
- /// <summary>
- ///
- /// </summary>
- [Property]
- public int ID
- {
- get{ return _iD; }
- set{ _iD=value; }
- }
- private string _name="";
- /// <summary>
- ///
- /// </summary>
- [Property]
- public string Name
- {
- get{ return _name; }
- set{ _name=value; }
- }
- /// <summary>
- ///
- /// </summary>
- [Property]
- public DateTime? AddTime { get; set; }
- private int _state=0;
- /// <summary>
- ///
- /// </summary>
- [Property]
- public int State
- {
- get{ return _state; }
- set{ _state=value; }
- }
- public static void Del(object id)
- {
- StringBuilder sql = new StringBuilder();
- sql.AppendFormat("delete from S_CdrToPng where id=" + id);
- ExecuteNonQuery(sql.ToString());
- }
- }
- }
|