title: EF6 : AddRange throws exception
body: <p>I am trying to use AddRange method to create a bulk insert into my DB.</p>
  
  <p>This is what I do :</p>
  
  <pre><code>    public virtual IEnumerable&lt;E&gt; InsertRange(IEnumerable&lt;E&gt; entities)
      {
          Context.Set&lt;E&gt;().AddRange(entities);
  
          if (isAutoSave)
              Context.SaveChanges();
      }
  </code></pre>
  
  <p>When I call SaveChanges() I get an exception saying:</p>
  
  <pre><code>Conflicting changes detected. This may happen when trying to insert multiple entities with the same key.
  </code></pre>
  
  <p>I think the problem might be in my model. My Id column, which is a PK and Identity is of type int, which cause all the new entities to be with Id=0. What can I do to solve that?</p>
  
  <p>Thanks,
  Matan</p>