ASP.NET MVC +流利nNibernate,国际奥委会是什么工具? [英] ASP.NET MVC + fluent nNibernate, what IoC tool?

查看:76
本文介绍了ASP.NET MVC +流利nNibernate,国际奥委会是什么工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个ASP.NET MVC项目,我们已经决定使用功能NHibernate的dataccess。为了使松耦合,我们走了的IoC / DI模式。我的问题是国际奥委会的工具去。我一直试图找到温莎,ninject,春天,structuremap和统一之间的区别,但它是很难看到每一个所提供的好处。请告诉我你的经验?

I'm working on a ASP.NET MVC project where we have decided to use Fluent nHibernate for dataccess. To enable loose coupling we go for a IoC/DI pattern. My questions is what IoC tool to go for. I've tried to find the differences between windsor, ninject, spring, structuremap and unity, but it's difficult to see the benefits each one has to offer. Whats your experience?

推荐答案

我用StructureMap,它是非常容易使用。我个人不喜欢使用XML来配置和StructureMap是一件轻而易举的使用code配置。它也非常容易,如果你需要切换的实现来切换不同的配置文件。

I use StructureMap and it's very easy to use. Personally I don't like to configure using xml and StructureMap makes it a breeze to configure using code. It's also very easy to switch different profile if you need to switch implementations.

这篇关于ASP.NET MVC +流利nNibernate,国际奥委会是什么工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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