你生成代码吗?如果是的话,你用什么,你生成什么?[英] Do you generate code? If so, what do you use and what do you generate?

本文是小编为大家收集整理的关于你生成代码吗?如果是的话,你用什么,你生成什么?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我使用过 MyGeneration,我喜欢它生成代码,该代码使用 Microsoft 的数据访问应用程序块作为我的数据访问层,并使我的数据库概念与我正在建模的领域保持同步.不过,它花了一个周末比预期更陡峭的学习曲线才能使其富有成效.

我想知道其他人在做什么与代码生成有关.

http://www.mygenerationsoftware.com

http://www.codesmithtools.com/

其他?

早在 2000 年左右,我工作的公司使用 Veritas Software 的产品(我相信是这样)来对组件进行建模并生成集成组件 (dll) 的代码.我没有太多经验,但似乎代码生成长期以来一直是"圣杯".实用吗?其他人如何使用它?

谢谢!

推荐答案

T4 是微软的 CodeSmith 杀手!!!

去看看吧.Microsoft 不想破坏他们的合作伙伴,所以他们不会做广告,但这是一件不可忽视的事情,它是免费的,并且安装在 Visual Studio 2008 中.

www.olegsych.com

codeplex.com/t4toolbox

www.t4editor.net

本文地址:https://www.itbaoku.cn/post/597550.html

问题描述

I've used MyGeneration, and I love it for generating code that uses Data Access Applicaiton Blocks from Microsoft for my Data Access Layer, and keeping my database concepts in sync with the domain I am modeling. Although, it took a steeper than expected learning curve one weekend to make it productive.

I'm wondering what others are doing related to code generation.

http://www.mygenerationsoftware.com

http://www.codesmithtools.com/

Others?

Back in 2000, or so, the company I worked for used a product from Veritas Software (I believe it was) to model components and generate code that integrated components (dlls). I didn't get a lot of experience with it, but it seems that code generation has been the "holy grail" for a long time. Is it practical? How are others using it?

Thanks!

推荐答案

T4 is the CodeSmith killer for Microsoft!!!!

Go check it out. Microsoft doesn't want to destroy their partners so they don't advertise it, but it is a thing to be reckoned with and ITS FREE and comes installed in Visual Studio 2008.

www.olegsych.com

codeplex.com/t4toolbox

www.t4editor.net