title: Item added to DbContext twice
body: <p>I am very new to SP.NET MVC, so excuse me for missing basic stuff.</p>
  
  <p>I have created a website working with a database (Microsoft SQL Server) and I'm using Entity Framework package to manage it.</p>
  
  <p>I have a DatabaseManager class as following:</p>
  
  <pre><code>Public class DatabaseManager : DbContext 
  {
      Public DbSet&lt;Connection&gt; Connections { get; set; }
  .
  .
  .
  }
  </code></pre>
  
  <p>My application listens for syslog connections and then updates the Connections member accordingly:</p>
  
  <pre><code>Db.connections.Add(new Connection(SourceIp, DestinationIp))
  db.SaveChanges();
  </code></pre>
  
  <p>Anyway, however weird it may seem, when I add a connection to the DbContext two connection are added (both identical) instead of one.</p>
  
  <p>What might be my problem?</p>