using System; using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("S_ErpModular")] public class S_ErpModular : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private int _parentID=0; /// /// /// [Property] public int ParentID { get{ return _parentID; } set{ _parentID=value; } } private string _name=""; /// /// /// [Property] public string Name { get{ return _name; } set{ _name=value; } } private string _code=""; /// /// /// [Property] public string Code { get{ return _code; } set{ _code=value; } } private int _sort=0; /// /// /// [Property] public int Sort { get{ return _sort; } set{ _sort=value; } } private string _path=""; /// /// /// [Property] public string Path { get{ return _path; } set{ _path=value; } } private bool _isDel=false; /// /// /// [Property] public bool IsDel { get{ return _isDel; } set{ _isDel=value; } } private string _memo=""; /// /// /// [Property] public string Memo { get{ return _memo; } set{ _memo=value; } } private int _state=0; /// /// /// [Property] public int State { get{ return _state; } set{ _state=value; } } private int _mType=0; /// /// /// [Property] public int mType { get{ return _mType; } set{ _mType=value; } } private string _url=""; /// /// /// [Property] public string Url { get{ return _url; } set{ _url=value; } } private string _tag=""; /// /// /// [Property] public string Tag { get{ return _tag; } set{ _tag=value; } } private bool _isOperate=false; /// /// /// [Property] public bool isOperate { get{ return _isOperate; } set{ _isOperate=value; } } private string _icon=""; /// /// /// [Property] public string Icon { get{ return _icon; } set{ _icon=value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from S_ErpModular where id=" + id); ExecuteNonQuery(sql.ToString()); } } }