Can't perform Create, Update or Delete operations on Table because it has no primary key
问题 I've been trying to insert row in the table having an identity column RequestID (which is primary key as well) HelpdeskLog logEntry = new HelpdeskLog { RequestBody = message.Body }; if (attachment != null) logEntry.Attachments = Helper.StreamToByteArray(attachment.ContentStream); Database.HelpdeskLogs.InsertOnSubmit(logEntry); But my code inevitably throws following error Can't perform Create, Update or Delete operations on Table because it has no primary key. despite primary key column