using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MadRunFabric.Common
{
[Serializable]
public class DbTable
{
///
/// 表名
///
public string TableName { get; set; }
///
/// 表说明
///
public string TableComment { get; set; }
///
/// 字段集合
///
public virtual ICollection Columns { get; set; } = new List();
}
[Serializable]
public class DbTableColumn
{
///
/// 字段名
///
public string ColName { get; set; }
///
/// 是否自增
///
public bool IsIdentity { get; set; }
///
/// 是否主键
///
public bool IsPrimaryKey { get; set; }
///
/// 字段数据类型
///
public string ColumnType { get; set; }
///
/// 字段数据长度
///
public long? ColumnLength { get; set; }
///
/// 是否允许为空
///
public bool IsNullable { get; set; }
///
/// 默认值
///
public string DefaultValue { get; set; }
///
/// 字段说明
///
public string Comment { get; set; }
///
/// C#数据类型
///
public string CSharpType { get; set; }
}
}