title: How to get property change notifications with EF 4.x DbContext generator
body: <p>I'm playing around with Entity Framework 4.3, and so I am using the DbContext Generator to create the context and entity classes. </p>
  
  <p>With the default EF 4 code generator template, entity classes implement INotifyPropertyChanged, and also add <code>Changing</code> and <code>Changed</code> partial methods in property setters.</p>
  
  <p>When I use the EF 4.x DbContext generator, as pictured below, the entity classes are much lighter, and do not include any means of tracking property changes.</p>
  
  <p><img src="https://i.stack.imgur.com/YRlrP.png" alt="enter image description here"></p>
  
  <p>Here is an example:</p>
  
  <pre><code>//------------------------------------------------------------------------------
  // &lt;auto-generated&gt;
  //    This code was generated from a template.
  //
  //    Manual changes to this file may cause unexpected behavior in your application.
  //    Manual changes to this file will be overwritten if the code is regenerated.
  // &lt;/auto-generated&gt;
  //------------------------------------------------------------------------------
  
  using System;
  using System.Collections.Generic;
  
  namespace SomeNamespace
  {
      public partial class SomeTable
      {
          public SomeTable()
          {
              this.Children = new HashSet&lt;Child&gt;();
          }
  
          public long parent_id { get; set; }
          public long id { get; set; }
          public string filename { get; set; }
          public byte[] file_blob { get; set; }
  
          public virtual Parent Parent { get; set; }
          public virtual ICollection&lt;Child&gt; Children { get; set; }
      }
  }
  </code></pre>
  
  <p>I must be missing an important piece of the puzzle, but my searches have been fruitless. So my question is: how can I have generated types included property change notifications with EF 4.3?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I fully agree with @derape answer's; but I am curious as to why I would need to change the <code>.tt</code> file when the EF 4 default code generation template <em>already</em> has the hooks. I mean what about when binding to a WPF <code>DependencyProperty</code>'? Without INotifyPropertyChanged, changes done by a command to a bunch of properties in a bunch of objects won't be reflected in the UI. What am I missing?</p>