I have three projects: WebAPI, Services and Repository.

WebAPI has a reference to Services and Services has reference to Repository.

Now I need to add a Unity Container for Services and Repositories but in WebAPI it's doesn't allow to add a reference to Repository.

How can I change this in order to obtain the desired design ?

  • i dont understand, you say webapi has a reference to repository but it also doesnt allow a reference???
    – Ewan
    Jul 17 '18 at 21:13
  • @Ewan, sorry, my mistake, I mean "Services has reference to Repository" Jul 18 '18 at 5:53
  • still shouldnt be a problem unless repository has a reference to webapi
    – Ewan
    Jul 18 '18 at 6:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.