EntityFramework Repositories drives from an Interface and abstract class : how to use dependency inject on ASP.NET MVC?

One possibility would be to have a base IRepository.

One possibility would be to have a base IRepository interface containing all the necessary operations and which will be implemented by the Repository abstract class as well as by the IAccommPropertyWebDetailRepository interface.

– tugberk Sep 30 at 15:22 @tugberk, AccommPropertyWebDetailRepository stays unchanged: it derives from Repository and implements IAccommPropertyWebDetailRepository. – Darin Dimitrov Sep 30 at 15:24 Ok, I think I got it.My repoClass will only have one interface but my detailed interface will have one interface too which is Repository. – tugberk Sep 30 at 15:25 1 @tugberk, DI, stays unchanged.

Your controller takes a IAccommPropertyWebDetailRepository as constructor argument and your DI framework is configured to pass a AccommPropertyWebDetailRepository into it. – Darin Dimitrov Sep 30 at 15:34 1 @tugberk, does AccommPropertyWebDetailRepository derive from Repository and implement IAccommPropertyWebDetailRepository? – Darin Dimitrov Sep 30 at 16:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions