title: Get Id using LINQ to SQL
body: <p>How can I get a record id after saving it into database. Which I mean is actually something like that.</p>
  
  <p>I have Document class (which is entity tho from DataBase) and I create an instance like </p>
  
  <pre><code>Document doc = new Document() {title="Math",name="Important"};
  dataContext.Documents.InsertOnSubmit(doc);
  dataContext.SubmitChanges();
  </code></pre>
  
  <p>than what I want is to retrieve it's id value (docId) which is located in database and it's primary key also automatic number. One thing, there will be lots of users on the system and submits tons of records like that.</p>
  
  <p>Thanks in advance everybody :)</p>