title: EF 4 Self-Tracking Entities Generator Error Template Does Not Contain Defenition for NeedsHandleCascadeDeleteMethod
body: <p>When trying to generate self-tracking entities using Visual Studio 2010 I am getting the following error:</p>
  
  <p>Compiling transformation:</p>
  
  <blockquote>
    <p>'Microsoft.VisualStudio.TextTemplatingFD3088D2F02A7E80E5DF5FEC4C1DAB39.GeneratedTextTransformation.MetadataTools'
    does not contain a definition for
    'NeedsHandleCascadeDeleteMethod' and
    no extension method
    'NeedsHandleCascadeDeleteMethod'
    accepting a first argument of type
    'Microsoft.VisualStudio.TextTemplatingFD3088D2F02A7E80E5DF5FEC4C1DAB39.GeneratedTextTransformation.MetadataTools'
    could be found (are you missing a
    using directive or an assembly
    reference?)</p>
  </blockquote>
  
  <p>I have used the self-tracking entities feature on other projects and have not had this problem before.  The only thing I can think of is that I have applied SP1 to Visual Studio.  Is there an updated template I need to install or should I just uninstall SP1?</p>
  
  <p>Thanks!</p>