1 Star 0 Fork 16

青侠oO/SmartCode

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
TableExtensions.cs 506 Bytes
一键复制 编辑 原始数据 按行查看 历史
beginor 提交于 2019-06-05 07:07 +08:00 . add basic typescript template
namespace SmartCode.Generator.Entity {
public static class TableExtensions {
/// <summary>
/// 获取表的摘要说明,如果 Description 不为空, 则返回 Description;
/// 否则返回 Type + Name
/// </summary>
public static string GetSummary(this Table table) {
if (!string.IsNullOrEmpty(table.Description)) {
return table.Description;
}
return table.Type + ", " + table.Name;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/MuNet/SmartCode.git
git@gitee.com:MuNet/SmartCode.git
MuNet
SmartCode
SmartCode
master

搜索帮助