|
|
1
8
您可以设置
更新:在最新版本的StructureMap中,使用.NET 3.5还可以使用SelectConstructor方法指定它:
http://structuremap.sourceforge.net/ConstructorAndSetterInjection.htm#section3 |
|
|
2
1
所以对于Razzie来说+1,因为如果NHRepository在我自己的程序集中,这将起作用,相反,我选择用我自己的存储库包装NHRepository,如下所示。。
|
|
|
Navid K · 与StructureMap 4.6瞬态生命周期混淆 8 年前 |
|
|
ViqMontana · 如何使用结构图模拟基类? 8 年前 |
|
|
chapas · 注入到不同的项目/程序集中 9 年前 |
|
|
Morn · 构造函数依赖注入WebApi属性 11 年前 |
|
|
Martin R-L · 可以使用约定注入基于ctor参数名称的命名实例吗? 13 年前 |