title: How to get ObjectContext to compile?
body: <p>I'm converting some code from VB6 to VB.Net and it contains a number of occurrences of:-</p>
  
  <pre><code>Private m_myobj As ObjectContext
  
  m_myobj = GetObjectContext()
  ' do stuff, then
  m_myobj.SetAbort()
  ' or
  m_myobj.SetComplete()
  </code></pre>
  
  <p>By dint of including a reference to <code>System.Data</code> and <code>System.Data.Entity</code> and <code>Imports System.Data.Object</code> I have managed to get the declaration to compile, but the others have so far resisted. The errors showing are:-</p>
  
  <pre><code>'GetObjectContext' is not declared. It may be inaccessible due to its protection level
  'SetComplete' is not a member of 'System.Data.Objects.ObjectContext'
  'SetAbort' is not a member of 'System.Data.Objects.ObjectContext'
  </code></pre>
  
  <p>It would appear from the documentation that the two methods don't actually exist but they (presumably) must have worked in the VB6. Does anyone know what I should do about this?</p>