title: How to Create Partial Classes from CodeFirst
body: <p>I am working with an application that uses EF, in a code-first approach so there are several domain classes.</p>
  
  <p>I am in need of getting access to ObjectContext.SavingChanges so I can operate on a few newly-added business rules.From what I have seen here on SO and in <a href="https://rads.stackoverflow.com/amzn/click/com/0596807260" rel="nofollow noreferrer" rel="nofollow noreferrer">Julie Lerman's book</a> I need to create a partial class with the same name as the generated partial class(es) generated by EF.</p>
  
  <p>I cannot seem to find the location of these generated EF classes. Without that I don't have class names or namespaces to use for my partial class implementation.</p>
  
  <p><strong>Questions</strong></p>
  
  <p><strong>1.</strong> Where can I find these generated EF classes?</p>
  
  <p><strong>2.</strong> Once found, which one do I use as my partial class if I need to get access to ObjectState.SavingChanges?</p>