86 Star 362 Fork 122

wxd_tony1984/DevelopAssistant

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CreateDTO.cs 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
wxd_tony1984 提交于 2019-10-26 22:27 +08:00 . 优化实体生成 下划线自动转小驼峰
using DevelopAssistant.Common;
using DevelopAssistant.Service.TemplatingEngine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DevelopAssistant.Service
{
public class CreateDTO
{
public static string CreateEntityDTO(TextTemplatingEngine host, string name, out string message)
{
StringPlus sp = new StringPlus();
using (var db = Utility.GetAdohelper(host.ConnectionString, host.ProviderName))
{
//string code = string.Empty;
//NORM.SQLObject.Generator.BuildEntityIDAL(db, name, host.NameSpace, host.SpaceName, out code);
//sp.Append(code);
}
message = "" + name + "-DTO 生成完成";
return sp.Value;
}
public static string CreateModelDTO(TextTemplatingEngine host, string name, out string message)
{
return Creater.CreateCode(host, "DTO", "t4_dto.tt", "F:\\CODE\\DTO\\", "", out message);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/sqlorm/DevelopAssistant.git
git@gitee.com:sqlorm/DevelopAssistant.git
sqlorm
DevelopAssistant
DevelopAssistant
master

搜索帮助