title: Net Core: DBContext Override to run functionality when DBSet is modified
body: <p>Is there a method when: ProductType Dbset is modified in any way, 
  (insert, update, delete, etc) Console writes Hello. </p>
  
  <p>Eventually team wants to append other intricate functionality. I want this in compilation time through overriding, Not execution run time with tracking, etc.</p>
  
  <pre><code>public class CustomStoreContext : StoreContext
  {
      public CustomContext()
      {
      }
  
      public DbSet&lt;Product&gt;
      {
          console.WriteLine("Hello");
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Do we have to override all DBSet modification functionalities, or is there easier way? 
  * Also need to account for Add Entity Graph .<a href="https://www.entityframeworktutorial.net/entityframework5/add-entity-graph-using-dbcontext.aspx" rel="nofollow noreferrer">https://www.entityframeworktutorial.net/entityframework5/add-entity-graph-using-dbcontext.aspx</a></p>
  
  <p>Would not like  not be on SaveChanges, since only looking for few Entities. Condition on SaveChanges can affect mass performance.</p>
  
  <p><a href="https://i.stack.imgur.com/S62Gp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S62Gp.png" alt="enter image description here"></a>
  We are using EF Net Core 2.2</p>