NHibernate的code代 [英] NHibernate Code Generation

查看:242
本文介绍了NHibernate的code代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与NHibernate的工作,和一些code生成工具。 MyGeneration是一个整体,智能code是其他。

I am working with NHibernate, and a few code generation tools. MyGeneration is one and SmartCode is the other.

这个问题已经被问过,但我看了一些其他的反应,发现NHibernate的空间code生成工具是pretty差。

This question has been asked before, but I have looked at some other responses and found that the code generation tools in the nHibernate space to be pretty poor.

我也许能逃脱MyGeneration和智能code,但有没有在那里,你有专门用于任何其他的可能性,并建议?

I might be able to get away with MyGeneration and SmartCode, but are there any other possibilities out there that you have specifically used, and would recommend?

我想我的条件是,他们必须与MSSQL 2008年的工作,并似乎有些工具不被积极开发更多的目前正在开发的工具,将是一件好事。

I guess my criteria is that they must work with MSSQL 2008, and tools that are currently being developed would be good too as it seems that some of the tools are not being actively developed any more.

另外的工具在理想情况下产生的域对象,也是NHibernate的映射文件 - 功能NHibernate将是一件好事,但不是必需的。这将是一件好事,如果code一代的模板和方法可以调整。

Also the tools would ideally generate the domain objects, and also the nhibernate mapping files - Fluent nhibernate would be good but not essential. It would be good if the templates and method of code generation could be tweaked.

我是一名开发人员,所以很高兴能得到我的手脏上合适的工具进行更改。

I am a developer so am happy to get my hands dirty on the right tool to make changes.

感谢。

推荐答案

我用 $ C $输入csmith 并非常高兴。我没有用他们的NHibernate的模板,但我知道这只是他们所支持的众多框架之一。看看这里

I've used CodeSmith and been very happy with it. I haven't used their NHibernate template but I know it is just one of the many frameworks they support. Have a look here.

这篇关于NHibernate的code代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆