using System; using System.Collections.Generic; using System.Text; using System.Data; namespace Ant.ORM { /// <summary> /// 子对象元数据类 /// </summary> [Serializable] public class ChildMataData { private string _maintable; private string _ChildTable; private string[] _ChildTableFields; private DbType[] _DataType; private string _Key = string.Empty; private string[] _ParentTableFields; private List<string> _ShowField=new List<string>(); /// <summary> /// 子对象对应的表 /// </summary> public string ChildTable { get { return this._ChildTable; } set { this._ChildTable = value; } } /// <summary> /// 主表 /// </summary> public string MainTable { get { return this._maintable; } set { this._maintable = value; } } /// <summary> /// 子表字段名 /// </summary> public string[] ChildTableFields { get { return this._ChildTableFields; } set { this._ChildTableFields = value; } } /// <summary> /// 数据类型 /// </summary> public DbType[] DataType { get { return this._DataType; } set { this._DataType = value; } } /// <summary> /// 关键字 /// </summary> public string Key { get { return this._Key; } set { this._Key = value; } } /// <summary> /// 父表字段 /// </summary> public string[] ParentTableFields { get { return this._ParentTableFields; } set { this._ParentTableFields = value; } } /// <summary> /// 显示值的字段 /// </summary> public List<string> ShowField { get { return this._ShowField; } set { this._ShowField = value; } } } }