123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Data;
- namespace Ant.ORM
- {
- /// <summary>
- /// 扩展对象元数据
- /// </summary>
- [Serializable]
- public class ReferenceMataData
- {
- private DbType[] _DataType;
- private string[] _ForeignKey;
- private string _ForeignTable;
- private string _Key = string.Empty;
- private string[] _MainKey;
- private string _ShowField;
- /// <summary>
- /// 关键字
- /// </summary>
- public string Key
- {
- get
- {
- return this._Key;
- }
- set
- {
- this._Key = value;
- }
- }
- /// <summary>
- /// 外键所在的表
- /// </summary>
- public string ForeignTable
- {
- get
- {
- return this._ForeignTable;
- }
- set
- {
- this._ForeignTable = value;
- }
- }
- /// <summary>
- /// 外键
- /// </summary>
- public string[] ForeignKey
- {
- get
- {
- return this._ForeignKey;
- }
- set
- {
- this._ForeignKey = value;
- }
- }
- /// <summary>
- /// 主键
- /// </summary>
- public string[] MainKey
- {
- get
- {
- return this._MainKey;
- }
- set
- {
- this._MainKey = value;
- }
- }
- /// <summary>
- /// 数据类型
- /// </summary>
- public DbType[] DataType
- {
- get
- {
- return this._DataType;
- }
- set
- {
- this._DataType = value;
- }
- }
- /// <summary>
- /// 显示值的字段
- /// </summary>
- public string ShowField
- {
- get
- {
- return this._ShowField;
- }
- set
- {
- this._ShowField = value;
- }
- }
- }
- }
|