Does Table.InsertOnSubmit create a copy of the original table?

Posted by Bryan on Stack Overflow See other posts from Stack Overflow or by Bryan
Published on 2010-04-28T18:47:13Z Indexed on 2010/04/28 18:57 UTC
Read the original article Hit count: 208

Filed under:

Using InsertOnSubmit seems to have some memory overhead.

I have a System.Data.Linq.Table<User> table. When I do table.InsertOnSubmit(user) and then int count = table.Count(), the memory usage of my application increases by roughly the size of the User table, but the count is the number of items before user was inserted. So I'm guess an enumeration after InsertOnSubmit will create a copy of the table. Is that true?

© Stack Overflow or respective owner

Related posts about linq-to-sql