title: which is the unit of work and which is the repository?
body: <p>I have two interfaces and I'm confused about the naming conventions:</p>
  
  <pre><code>interface InterfaceA {
      IDbSet&lt;Patient&gt; Patients { get; }
      // others like above
  }
  
  interface InterfaceB : InterfaceA {
      int Commit();
  }
  
  class DbContext : InterfaceB {
      public IDbSet&lt;Patient&gt; Patients { get; set; }
  
      int Commit() {
          return this.SaveChanges();
      }
  }
  </code></pre>
  
  <p>I don't want to confuse the other coders on my team. Which interface is the unit of work and which one is the repository?</p>