1 Star 0 Fork 122

库卡青年/DevelopAssistant

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CreateDAL.cs 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
wxd_tony1984 提交于 2016-06-01 23:04 +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 CreateDAL
{
public static string CreateEntityDAL(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.BuildEntityDAL(db, name, host.NameSpace, host.SpaceName, out code);
sp.Append(code);
}
message = "" + name + "-DAL 生成完成";
return sp.Value;
}
public static string CreateModelDAL(TextTemplatingEngine host, string name, out string message)
{
return Creater.CreateCode(host, "DAL", "t4_dal.tt", "F:\\CODE\\DAL\\", "", out message);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/wwwpythonpw/DevelopAssistant.git
git@gitee.com:wwwpythonpw/DevelopAssistant.git
wwwpythonpw
DevelopAssistant
DevelopAssistant
master

搜索帮助