using System; using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("S_TaoBaoTmc2")] public class S_TaoBaoTmc2 : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _topic=""; /// /// /// [Property] public string Topic { get{ return _topic; } set{ _topic=value; } } private string _urlparm=""; /// /// /// [Property] public string urlparm { get{ return _urlparm; } set{ _urlparm=value; } } private string _message=""; /// /// /// [Property] public string message { get{ return _message; } set{ _message=value; } } private string _con=""; /// /// /// [Property] public string con { get{ return _con; } set{ _con=value; } } private string _userId=""; /// /// /// [Property] public string userId { get{ return _userId; } set{ _userId=value; } } private string _userNick=""; /// /// /// [Property] public string userNick { get{ return _userNick; } set{ _userNick=value; } } /// /// /// [Property] public DateTime? AddTime { get; set; } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from S_TaoBaoTmc2 where id=" + id); ExecuteNonQuery(sql.ToString()); } } }