Home > Net >  Out with the correct implementation of the interface
Out with the correct implementation of the interface

Time:04-02

1. Define the interface methods
2. Implement the interface methods
3. Off with interface methods
Why would an error

CodePudding user response:

Error message said very understand this instance you have no instantiation! Is empty!

CodePudding user response:

Tips are already clear,, no instantiation

CodePudding user response:

He will not prompt you to call in the same class instantiation, ha..

CodePudding user response:

IUI get/set?? Then is not new to use?

CodePudding user response:

See you this writing, do you want to use the Ioc did, but no configuration container, or is not configured for through property injection?

CodePudding user response:

SQL is write wrong to pull, zha zha to

CodePudding user response:

Cows break in life, don't need to explain - IUserinfo IUI=new the Userinfo ();

CodePudding user response:

Class does not instantiate
If you need to configure the IOC
Need after startup configuration in using class dependency injection

CodePudding user response:

Autofac implementing an interface automatic injection, configuration has a problem

CodePudding user response:

reference 4 floor wtnu200 response:
IUI get/set?? Then is not new to use?

I want to use injection

CodePudding user response:

Autofac configuration also need for dependency injection in the controller constructor
  •  Tags:  
  • C#
  • Related