123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- 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;
- }
- }
- }
- }
|