title: Raw SQL 'Insert Into' in ASP MVC
body: <p>i'm trying to insert data from a form into two tables in db. </p>
  
  <pre><code>public ActionResult Cr([Bind(Include = "id,name,time")] appointment appointment, [Bind(Include = "pid,phone")] customer customer , string submit)
          {
          string str1 = "Insert Into appointment.id, appointment.name, appointment.time Values id,name,time"
          string str2= "Insert Into customer.pid, customer.phone Values pid,phone"
          var Query = dbb.Database.SqlQuery&lt;ViewModel.custapp&gt;(str1).ToList();
          var Query = dbb.Database.SqlQuery&lt;ViewModel.custapp&gt;(str2).ToList();
          return View("Index");
          }
  </code></pre>
  
  <p>I am not sure if my code is wrong but the data are not inserted in the tables.</p>