title: Get OriginalValues Entity Framework from an entity after the context is closed
body: <p>i'm trying to retrive OriginalValues from a entity after the context has been closed, but i get CurrentValues. Any suggestion?
  Can not get entity connected to the object, i must close it. Think about a generic model, the below one is just a sample.</p>
  
  <p>To let you understaind, here my sample (as reference the db can be found here: <a href="http://msdn.microsoft.com/en-us/data/jj592677.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/data/jj592677.aspx</a>)</p>
  
  <pre><code>public static void Sample1() 
  {
      var blog = null;
  
      //1: get from context
      using (var context = new BloggingContext()) 
      { 
          blog = context.Blogs.Find(1);
          //suppose -&gt; blog.Name == "Test 1";
      }
  
      blog.Name = "Test 2"; //set name
  
      //The function here set the blog name record to "Test 3", using straight SQL
      SetBlogNameUsingExternalSQL("Test 3", 1);
  
      //2: get original values
      using (var context = new BloggingContext()) 
      {
          context.Blogs.Attach(blog);
          var currentValues = context.Entry(blog).CurrentValues;
          //currentValues.Name is "Test 2", expected is "Test 2" =&gt; OK
          var databaseValues = context.Entry(blog).GetDatabaseValues(); 
          //databaseValues.Name is "Test 3", expected is "Test 3" =&gt; OK
          var originalValues = context.Entry(blog).OriginalValues;
          // -------&gt; originalValues.Name is "Test 2", expected is "Test 1" =&gt; :(
      }
  }
  </code></pre>
  
  <p>Note: this doesn't help me much: <a href="https://stackoverflow.com/questions/14871294/ef-5-originalvalues-are-lost-when-context-is-disposed">EF 5 : OriginalValues are lost when context is disposed</a></p>