using System; using System.Collections; using System.Data; using BP.DA; using BP.En; using BP.Sys.XML; namespace BP.Sys.XML { /// /// 属性 /// public class SQLListAttr { /// /// 编号 /// public const string No = "No"; /// /// SQL /// public const string SQL = "SQL"; /// /// 备注 /// public const string Note = "Note"; } /// /// SQLList 的摘要说明,属性的配置。 /// public class SQLList:XmlEn { #region 属性 public string No { get { return this.GetValStringByKey(SQLListAttr.No); } } public string SQL { get { return this.GetValStringByKey(SQLListAttr.SQL); } } /// /// 备注 /// public string Note { get { return this.GetValStringByKey(SQLListAttr.Note); } } #endregion #region 构造 /// /// 查询 /// public SQLList() { } /// /// 按照SQL来查询 /// /// public SQLList(string no) { this.RetrieveByPK("No", no); } /// /// 获取一个实例 /// public override XmlEns GetNewEntities { get { return new SQLLists(); } } #endregion } /// /// 属性集合 /// public class SQLLists:XmlEns { #region 构造 /// /// 考核过错行为的数据元素 /// public SQLLists() { } #endregion #region 重写基类属性或方法。 /// /// 得到它的 Entity /// public override XmlEn GetNewEntity { get { return new SQLList(); } } public override string File { get { return BP.Difference.SystemConfig.PathOfXML + "SQLList.xml"; } } /// /// 物理表名 /// public override string TableName { get { return "Item"; } } public override Entities RefEns { get { return null; } } #endregion } }