title: Is it possible to add record without using the auto generated class in LINQ to SQL?
body: <p>I have a table named 'DEPARTMENT' and has 2 columns, 'DeptID' and 'DeptName'.
  I have created properties for that.</p>
  
  <pre><code>class DepartmentClass
  {
      public int Did { get; set; }
      public string Dname { get; set; }
  }
  </code></pre>
  
  <p>Now, instead of using auto generated 'DEPARTMENTs' class, I want to use the above properties to add entry.</p>
  
  <pre><code>    DepartmentClass newDept = new DepartmentClass();
          newDept.Did = 120;
          newDept.Dname = "Shell Scripting";
          db.DEPARTMENTs.InsertOnSubmit(newDept);  //this has invalid argument
          db.SubmitChanges();
  </code></pre>
  
  <p>Please let me know if there is any way to make it possible?</p>