You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.8 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Estsh.Core.CodeGenerate
{
public class FieldInfo
{
/// <summary>
/// 初始化
/// </summary>
public FieldInfo()
{
FieldName = string.Empty;
Description = string.Empty;
}
/// <summary>
/// 字段名称
/// </summary>
public string FieldName { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 系统数据类型,如 int
/// </summary>
public string DataType { get; set; }
/// <summary>
/// 数据库里面存放的类型。
/// </summary>
public string FieldType { get; set; }
/// <summary>
/// 代表小数位精度。
/// </summary>
public long? FieldScale { get; set; }
/// <summary>
/// 数据精度仅数字类型有效总共多少位数字10进制
/// 在MySql里面代表了字段长度
/// </summary>
public long? FieldPrecision { get; set; }
/// <summary>
///
/// </summary>
public long? FieldMaxLength { get; set; }
/// <summary>
/// 可空
/// </summary>
public bool IsNullable { get; set; }
/// <summary>
/// 是否为主键字段
/// </summary>
public bool IsIdentity { get; set; }
/// <summary>
/// 【未用上】该字段是否自增
/// </summary>
public bool Increment { get; set; }
/// <summary>
/// 默认值
/// </summary>
public string FieldDefaultValue { get; set; }
}
}