ninject
Custom OptionalAttribute with Ninject
Is there a way that I can create my own OptionalAttribute for Ninject? I know I can replace InjectAttribute by using the NinjectSettings class (which I already have done), but there doesn\'t seem to[详细]
2023-04-13 08:52 分类:问答Custom Attribute + validating permissions with query string?
I have a certain part of my site that checks if the logged on user can access the id of a record (Report id), if so they can view the content on that page. There can be various different types of user[详细]
2023-04-13 03:46 分类:问答Is this an appropriate use of the Service Locator Pattern in my MVC 3 ModelBinder?
I have an ASP.NET MVC 3 application and am using Ninject for injecting dependencies into my classes. Actions on the Controllers pass ViewModels (that do not contain logic) to the view layer.[详细]
2023-04-12 20:22 分类:问答Using Ninject dynamically to connection to different databases
I have an MVC application using Ninject to connect to a single database. Now I need to support multiple databases. Currently, my global.asax.cs file has the following definition for ninject:[详细]
2023-04-12 14:54 分类:问答Get an instance of an object with Ninject
I installed on my project Ninject.MVC3 via Nuget. I read this article that to inject dependencies in my controll开发者_如何学JAVAers, all you had to do was install Ninject, add my dependencies in Nin[详细]
2023-04-12 14:53 分类:问答Ninject Di bindings using a WCF service
I recently created a WCF service library. I am planning on hosting it in IIS. Since I want to reuse my repository layer I decided to go use Ninject in my WCF service as well (I use it in other project[详细]
2023-04-12 12:39 分类:问答DependencyResolver.Current.GetService always returns null
According to this tutorial, to use Ninject in my Asp.net MVC 3 application , all I have to do is install package via Nuget and configure dependencies.[详细]
2023-04-12 06:31 分类:问答Ninject MVC 3 - Injecting dependencies into models and controllers
I don\'t fully understand what\'s happening behind the scenes when we inject dependencies into controllers and models.[详细]
2023-04-12 04:06 分类:问答IoC / DI with MVC Attributes
One of my MVC attributes has a dependancy on a service which I was hoping to inject via the constructor. Obviously the MVC attribute requires a parameterless constructor too.[详细]
2023-04-11 23:27 分类:问答How to use Ninject to inject services into MVC 3 FilterAttributes?
I\'m writin开发者_StackOverflow中文版g a custom ErrorHandler attribute for my MVC project. I would like to inject an implementation of EventViewerLogger into that attribute.[详细]
2023-04-11 12:47 分类:问答