ninject-2
How do I get property injection working in Ninject for a ValidationAttribute in MVC?
I have a validation attribute set up where I need to hit the database to accomplish the validation.I tried setting up property injection the same way I do elsewhere in the project but it\'s not workin[详细]
2022-12-28 10:41 分类:问答Deploying MVC2 application to IIS7.5 - Ninject asked to provide controllers for content files
I have an application that started life as an MVC (1.0) app in Visual Studio 2008 Sp1 with a bunch of Silverlight 3 projects as part of the site. Nothing fancy at all. Using Ninject for dependency inj[详细]
2022-12-28 08:47 分类:问答Can Ninject be instructed to apply context-based logic to all bindings?
We\'ve begun using Dependency Injection recently, and we\'ve chosen Ninject 2 (for now) as our IoC Container.As I refactor our solution to incorporate DI principles, I\'ve run into something that bugs[详细]
2022-12-26 19:00 分类:问答Contextual bindings with Ninject 2.0
In Ninject 1.0 I had following binding definitions: Bind<ITarget>().To<Target1>().Only(When.Context.Variable(\"variable\").EqualTo(true));[详细]
2022-12-25 00:23 分类:问答Using ASP.NET MVC 2 with Ninject 2 from scratch
I just did File -> New Project last night on a new project. Ah, the smell of green fields. I am using the just released ASP.NET MVC 2 (i.e. no preview or release[详细]
2022-12-24 08:52 分类:问答What should an INSERT stored procedure do with the Identity value?
I need to write a stored procedure to insert a row into a table.The table has an Identity column called ID.My question is should I return the value and if so, how?[详细]
2022-12-16 09:39 分类:问答