using System; using System.Collections; using BP.DA; using BP.En; using BP.Sys; using BP.Sys.XML; using BP.Difference; namespace BP.Sys.XML { /// /// RegularExpression 正则表达模版 /// public class RegularExpression:XmlEn { #region 属性 /// /// 编号 /// public string No { get { return this.GetValStringByKey("No"); } } /// /// 名称 /// public string Name { get { return this.GetValStringByKey("Name"); } } public string Note { get { return this.GetValStringByKey("Note"); } } public string ForCtrl { get { return this.GetValStringByKey("ForCtrl"); } } public string Exp { get { return this.GetValStringByKey("Exp"); } } #endregion #region 构造 /// /// 节点扩展信息 /// public RegularExpression() { } /// /// 获取一个实例 /// public override XmlEns GetNewEntities { get { return new RegularExpressions(); } } #endregion } /// /// /// public class RegularExpressions:XmlEns { #region 构造 /// /// 正则表达模版 /// public RegularExpressions() { } #endregion #region 重写基类属性或方法。 /// /// 得到它的 Entity /// public override XmlEn GetNewEntity { get { return new RegularExpression(); } } /// /// 文件路径 /// public override string File { get { return BP.Difference.SystemConfig.PathOfData + "XML/RegularExpression.xml"; } } /// /// 物理表名 /// public override string TableName { get { return "Item"; } } public override Entities RefEns { get { return null; } } #endregion } }