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