1 Star 0 Fork 16

柴宝/SmartCode

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ColumnExtensions.cs 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
using System;
using System.Text;
namespace SmartCode.Generator.Entity
{
public static class ColumnExtensions
{
/// <summary>
/// 获取列的摘要说明,如果 Description 不为空, 则返回 Description;
/// 否则返回 Name + DbType
/// </summary>
public static string GetSummary(this Column column)
{
if (!string.IsNullOrEmpty(column.Description))
{
return column.Description;
}
return column.Name + ", " + column.DbType;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/chaibao/SmartCode.git
git@gitee.com:chaibao/SmartCode.git
chaibao
SmartCode
SmartCode
master

搜索帮助