I need to insert records into a table that does not have a primary key using LINQ to SQL. The table is poorly designed; I have no control over the structure of the table. A table consists of several varchar fields, a text field, and a timestamp. It is used as an audit trail for other objects.
What is the best way to do inserts? Can I extend the partial Linq class for this table and add a "fake" key? I am open to any hack, however kludgey.
linq linq-to-sql
betitall
source share