Questions tagged as 'ioc'

0
answers

JSF + DDD: Is it correct to use the domain entities within the managed bean?

1 - Is DDD correct to let domain objects be fed by JSF through EL? // classe da camada de dominio public class Cliente { private String nome; // getters e setters; } // bean ligado diretamente ao objeto de dominio...
asked by 04.11.2016 / 18:53
0
answers

The number of generic arguments provided is not equal to the generic definition definition. Parameter name: instantiation

I'm having a problem while developing an application in Asp.net MVC with IOC, Automapper and all other screens work perfectly, just not for Drivers. Unable to identify the error, could they help me? Follow the controllers, and the other classes,...
asked by 02.12.2015 / 12:55
2
answers

Problem when performing delegate bind on ninject

I'm developing an application with ninject for IoC and entity framework, but when I bind with delegate it gives this error: <Message>An error has occurred.</Message> <ExceptionMessage> Error activating IntPtr No matching bind...
asked by 02.09.2015 / 20:19
0
answers

Ninject - System.MissingMethodException: No parameterless constructor was defined for this object

I have the error;    No parameterless constructor has been defined for this object.       Description: An unhandled exception occurred during the execution of the   current Web request. Examine the stack trace for   more information about th...
asked by 23.11.2017 / 14:16
0
answers

Instantiate Unit of Work with only 1 context. EF 6 Simple Injector

In a simple application, I have the code below that works to some extent, very well. However, for each Service that is instantiated for the Form, a new unit of work is created, consequently a new Context. So while the user is working on form, he...
asked by 13.06.2016 / 03:09