0
で
まずMVC3をオフに使用している場合、ここでのコードがあります:"このオブジェクトのために定義されていませんパラメータなしのコンストラクタ" Ninject
private IAppRepository appRepository;
public SearchController(IAppRepository appRepository)
{
this.appRepository = appRepository;
}
:検索・コントローラー用NinjectControllerFactory
class MrBigglesworthServices : NinjectModule
{
public override void Load()
{
Bind<IAuthenticationRepository>()
.To<AuthenticationRepository>()
.WithConstructorArgument("connectionString",
ConfigurationManager.ConnectionStrings["VoiceDB"].ConnectionString
);
Bind<IAppRepository>()
.To<AppRepository>()
.WithConstructorArgument("connectionString",
ConfigurationManager.ConnectionStrings["SessionStore"].ConnectionString
);
}
}
コンストラクタにバインド
オンラインの例で見たことに基づいて、これで十分ですが、何らかの理由で、上記のエラーが発生しています。助言がありますか?どうかありがとうございます。