开发者

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

开发者 https://www.devze.com 2023-03-13 13:54 出处:网络
I\'m going to start an pretty large project witch contains 30+ modules, I have goggled almost for acapable framework ?开发者_如何学Go Need some help to find out witch one of these is soutable?

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

精彩评论

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

关注公众号