NHibernate 映射属性 +春天
我正在开发一个 C# .NET 项目,在该项目中我使用 NHibernate 将我的类映射到数据库中的表。我需要使用 NHibernate.Mapping.Attributes 和由 Spring 配置的事务。
事实上,Spring 1.3.0 提供了一个名为“Spring.Data.NHibernate.Northwind”的示例项目,它几乎提供了我想要在项目中实现的所有功能和架构。问题是这个示例项目使用 xml 映射文件而不是属性来映射类,并且截至今天我还没有找到任何方法使示例项目使用属性映射。
任何帮助将不胜感激。
I'm working on a C# .NET project in which I am mapping my classes to the tables in my database with NHibernate. I need to use NHibernate.Mapping.Attributes and transactions to be configured by Spring.
The fact is that Spring 1.3.0 provides a sample project called "Spring.Data.NHibernate.Northwind" that almost provides all the functionalities and the architecture that I want to implement in my project. The problem is that this sample project uses xml mapping files instead of attributes to map the classes, and as of today I've not been able to found any way to make the sample project work with attributes mapping.
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经有一段时间没有真正找到解决方案了,有: Spring.NET论坛
It's been a while since I actually found a solution, there: Spring.NET forum