title: Is that possible, DbContext.SaveChanges() returns 0 but doesn't have an exception?
body: <p>I use Entity Framework 4.0. Is it possible that <code>SaveChanges()</code> returns 0 but doesn't throw an exception? For example, after adding.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>try
  {
      _context.CodeProducts.Add(entity);
      _context.SaveChanges();
  
      //Shell I control return result from SaveChanges() in here.
      //However doesn't throw an exceoption?
  
      return new MethodResponse()
      {
          ResultText = "Successful",
          Type = MethodResponse.ResponseType.Succeed
      };
  }
  catch (OptimisticConcurrencyException exc)
  {
      throw exc;
  }
  catch (UpdateException exc)
  {
      throw exc;
  }
  catch (Exception exc)
  {
      throw exc;
  }
  </code></pre>