title: Insert into the database "MDF" does not work
body: <p>Honestly I've tried everything and in many ways, but I can not give a simple INSERT in the database. Please could someone tell me what is wrong with this code?</p>
  
  <pre><code>using (SqlConnection con = new SqlConnection(AcessoBD.ConnectionString))
  {
      string queryUsuario = @"INSERT INTO si_usuario (senha, login) VALUES ('aaa', 'aaa');";
  
      using (SqlCommand cmd = new SqlCommand(queryUsuario, con))
      {
         con.Open();
         cmd.BeginExecuteNonQuery();
  
      }
  }
  </code></pre>
  
  <p>Making it clear that I've tried with:
  <strong><code>cmd.ExecuteNonQuery();</code></strong>
  But it did not work!</p>
  
  <p>The funny thing is that I can make the bench query above using the same structure, only even changing the query.
  Is it a permission problem? But no error occurs!</p>
  
  <pre><code>public class AcessoBD
      {
          static public String ConnectionString
          {
              get
              {    
                  return ConfigurationManager.ConnectionStrings["Conexao"].ConnectionString;
              }
          }
      }
  </code></pre>
  
  <p><strong>Table Structure</strong></p>
  
  <pre><code>CREATE TABLE [dbo].[si_usuario] (
      [id]    INT           IDENTITY (1, 1) NOT NULL,
      [senha] VARCHAR (100) NOT NULL,
      [login] VARCHAR (100) NOT NULL,
      CONSTRAINT [PK_si_usuario] PRIMARY KEY CLUSTERED ([id] ASC)
  );
  </code></pre>
  
  <p><strong>App.config</strong></p>
  
  <pre><code>&lt;add name="Conexao" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Base\Database.mdf;Integrated Security=True" providerName="System.Data.SqlClient" /&gt;
  </code></pre>