Inserting extra data in a linq result but not to the data source or waiting for submiting changes on a context object
问题 When I had a Typed DataTable with information retrieved from a SQL Server with a table adapter, I'm able to insert temporary data into that DataTable which I just want to use on execution time, and I don't want it to be inserted into the database. First supose that for example I have a Database table like this: CREATE TABLE MyData ( MyCol1 int, MyCol2 nchar(10) ) So using SqlClient objects this is what I do. MyTypedDataSet.MyTypedDataTable myDataTable = new MyTypedDataSet.MyTypedDataTable();