title: What is wrong with my insert query in linq c#?
body: <p>i have a table with a name </p>
  
  <pre><code>logtbl(logid int, emplid int, logdate date, description varchar(50), logtime time(7), logdatetime datetime)  
  </code></pre>
  
  <p>Here is my code:  </p>
  
  <pre><code>public void savelogs(int idemp, DateTime logdate, string logname, TimeSpan logtimes, DateTime timedate)
  {
      logtbl log = new logtbl()
      {
          emplid = idemp,
          datelog = logdate,
          description = logname,
          timelog = logtimes,
          logdatetime = timedate
      };
      dbko.logtbls.InsertOnSubmit(log);
      dbko.SubmitChanges();
      MessageBox.Show("Log save successfully;");
  }
  </code></pre>
  
  <p>And i call it like this:<br>
  a stands for integer<br>
  dtdate and dttime stands for datetimepicker  </p>
  
  <pre><code>savelogs(a, dtdate.Value.ToShortDateString, cmbstatus.Text, dttime.Value.ToShortTimeString, dtdate.Value.ToShortDateString);  
  </code></pre>
  
  <p>the error is in this line of code.<br>
  What is wrong with my code?</p>