title: Implementing unit of work and service in WPF (MVVM)
body: <p>Which is more effective when you create an application (like student management system)?</p>
  
  <ul>
  <li>using DbContext directly to view models</li>
  <li>using the unit of work pattern with repositories and services</li>
  </ul>
  
  <p>I am using <code>WPF</code> with <code>MVVM</code> pattern and <code>Entity Framework 6.0</code>.</p>
  
  <p>Unit of work pattern reference: <a href="https://www.c-sharpcorner.com/article/repository-and-unitofwork-pattern-part-2/" rel="nofollow noreferrer">link</a></p>