title: Repository pattern and dependency injection in Windows service
body: <p>I need to develop a windows service. Have worked only with Asp.Net MVC not done any windows based application before.</p>
  
  <p>The basic functionalities for this includes accessing database then invoking a webservice with values from DB and then update the response back in DB.</p>
  
  <p>At the moment am planning to add  DataAccesslayer , Business &amp; Service Layer</p>
  
  <p>Few queries i have is can we use </p>
  
  <ol>
  <li><p>Entityframework &amp; Repository pattern with dependency injection in windows applications.</p></li>
  <li><p>Is it recommended to use the dependency injection.</p></li>
  </ol>
  
  <p>Please suggest on any recommended approach for this implementation</p>