开发者

Can I use Ninject insted of PRISM? or maybe it sould replace Unity in PRISM?

I'm going to start an pretty large project witch contains 30+ modules, I have goggled almost for a capable framework ?开发者_如何学Go Need some help to find out witch one of these is soutable?

1) PRISM 2) Ninject 3) Unity or MEF

any why? I'm using MVVM in WPF4. Thanks


The most appropriate framework will depend on the problems that you are trying to solve. There is nothing to stop you using more than one of these frameworks together if it is appropriate, they are not mutually exclusive.

For example, we started a large scale enterprise composite app and used Prism, then we started to use MEF and slowly phased out Prism as it wasn't necessary to meet any of the business requirements. So now we use a mixture of Unity for our app's main DI infrastructure, and MEF for dynamic discovery of plugins.

I would also strongly recommend looking at something like Caliburn.Micro for simplifying MVVM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜