简体   繁体   English

使用MyGeneration和Fluent NHibernate

[英]Using MyGeneration with Fluent NHibernate

I found a fantastic template for NHibernate code generation using MyGeneration here, 我在这里使用MyGeneration为NHibernate代码生成找到了一个很棒的模板,

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

This creates XML mapping files with the extension hbm.xml. 这将创建扩展名为hbm.xml的XML映射文件。

I was wonder if anybody knows of templates which support fluent NHibernate which defines the mapping using C# files. 我很想知道是否有人知道支持流畅NHibernate的模板,它定义了使用C#文件的映射。

Thanks 谢谢

当您使用Fluent NHiberate时,您不需要hbm文件,您可以根据您的域模型和约定 生成它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM