44 lines
912 B
C#
44 lines
912 B
C#
using JNPF.DependencyInjection;
|
|
using SqlSugar;
|
|
|
|
namespace JNPF.Systems.Entitys.Dto.Database;
|
|
|
|
/// <summary>
|
|
/// 数据库表列表输出.
|
|
/// </summary>
|
|
[SuppressSniffer]
|
|
public class DatabaseTableInfo
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
DbTableInfo table { get; set; }
|
|
|
|
List<DbColumnInfo> columns { get; set; }
|
|
|
|
public string clsName { get; set; } = string.Empty;
|
|
|
|
public string nsName { get; set; } = "Tnb.Entities";
|
|
|
|
public string pkType { get; set; } = "string";
|
|
|
|
public string pkName { get; set; } = "id";
|
|
|
|
public string GetColumnDefaultValue(string colName)
|
|
{
|
|
return "default";
|
|
}
|
|
public string GetColumnCsType(string colName)
|
|
{
|
|
return "default";
|
|
}
|
|
public string GetColumnCsName(string colName)
|
|
{
|
|
return "default";
|
|
}
|
|
public string GetColumnAttrib(string colName)
|
|
{
|
|
return "default";
|
|
}
|
|
}
|