便携式区域的Mvc 3依赖注入 [英] Mvc 3 Dependency Injection for Portable Area

查看:63
本文介绍了便携式区域的Mvc 3依赖注入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我有2个项目:MySiteApp(主要项目)和MyAdminApp(作为类库,包含在主项目
中作为可移植区域)


I have 2 projects: MySiteApp (which is the main project) and MyAdminApp (which is made as class library and include in main project as a portable area)


我如何在Controller中使用依赖注入 在MyAdminApp中?

How can i use Dependency Injection in Controller in MyAdminApp?


但我不希望我的MySiteApp知道关于MyAdminApp的信息,只有一个参考文献。

But i don't want that my MySiteApp knows something about MyAdminApp, only one reference.



我应该使用哪个框架?Unity,Spring,MvcContrib还是别的什么?


如果可能,你能给我一些例子吗?

Can you give me some examples if possible?


谢谢。

推荐答案

您的问题是关于 MVC 。所以请在
MVC中发布您的问题论坛获得最佳答案。

your question is regarding MVC. So please post your question in MVC Forum for best answer.

问候

Alisha


这篇关于便携式区域的Mvc 3依赖注入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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