Linq to Oracle 使用教程(八)使用 T4 模版生成代码

点击这里返回目录

 

禁用原来的代码生成(可选步骤)

选择 Northwind.admf 文件,在属性窗口中,将 Custom Tool 属性设置为空,原来值为 ALinqCodeGenerator 。

选择模版

右键点击项目,在弹出的菜单中,选择 Add ALinq Template,然后选择 Entities.tt 模版,在弹出窗口中,选择 Northwind.admf 模型,点击 OK 按钮后生成代码。

点击这里返回目录

原文地址:https://www.cnblogs.com/ansiboy/p/1894791.html