While creating a little project, I wanted to know how to insert an object into a table using LINQ to SQL. Using Intellisense it wasn’t obvious at all.
Scott Guthrie wrote a post on how do it. Unfortunately, the method name has changed since he did it, so you need to call InsertOnSubmit on the Table [...]
Lesen Sie den vollständigen Eintrag unter http://richardbushnell.net/index.php/2008/01/15/inserting-into-a-table-with-linq-to-sql/