title: EF EntityState.Modified Try Catch Issue
body: <p>I have a code like this:</p>
  
  <pre><code>try
  {
      Member member = database.Members.Where(m=&gt;m.ID=1).FirstOrDefault();
      member.Name = "NewMemberName";
      database.Entry(member).State = EntityState.Modified;
      database.SaveChanges();
   }
   catch (Exception ex)
  {        
      database.Logs.Add(new Log() { Value=ex.ToString() });
      database.SaveChanges();
  }
  </code></pre>
  
  <p>And Entity:</p>
  
  <pre><code>[StringLength(5)]
  public string Name { get; set; }
  </code></pre>
  
  <p>If the Name String more than 5 it would be error and catch the exception ,but when I add a log then save ,the exception from SaveChange(); still remains,how should I do?(Can't change the schema)</p>