using System; using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("CE_Columns")] public class CeColumns : ComBase { private string _name=""; /// /// /// [Property] public string Name { get{ return _name; } set{ _name=value; } } private int _userID=0; /// /// /// [Property] public int UserID { get{ return _userID; } set{ _userID=value; } } private string _con=""; /// /// /// [Property] public string Con { get{ return _con; } set{ _con=value; } } private string _cpath=""; /// /// /// [Property] public string cpath { get{ return _cpath; } set{ _cpath=value; } } private bool _issys=false; /// /// /// [Property] public bool issys { get{ return _issys; } set{ _issys=value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_Columns where id=" + id); ExecuteNonQuery(sql.ToString()); } } }