使用MyGeneration与功能NHibernate [英] Using MyGeneration with Fluent NHibernate

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

问题描述

我找到了NHibernate的代码生成一个梦幻般的模板使用MyGeneration这里,

I found a fantastic template for NHibernate code generation using MyGeneration here,

http://vucetica.blogspot.com/2009/01/nhibernate-template-for-mygeneration.html

这将创建XML映射文件扩展名的hbm.xml。

This creates XML mapping files with the extension hbm.xml.

我不知道是否有人的支持功能NHibernate模板,定义知道使用C#的文件映射。

I was wonder if anybody knows of templates which support fluent NHibernate which defines the mapping using C# files.

感谢

推荐答案

当您使用流利NHiberate你不用HBM文件,您可以根据您的域模型和<一个产生他们HREF =http://wiki.fluentnhibernate.org/Conventions相对=nofollow>约定

When you are using Fluent NHiberate you needn't hbm files, you can generate them based on your domain model and conventions

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

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