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