Linq to SQL - Error handling

Posted by Sundararajan S on Stack Overflow See other posts from Stack Overflow or by Sundararajan S
Published on 2010-05-10T15:46:09Z Indexed on 2010/05/10 15:54 UTC
Read the original article Hit count: 299

Filed under:

I have a linq to sql statement that inserts records in the database. If there is a duplicate, it throws Primary key violation .

after this happens, whenever i try to execute any other statement, it repeatedly shows this error. Is this a problem of transaction not getting closed. Also how to handle transactions in a more reliable way in LINQ to SQL

© Stack Overflow or respective owner

Related posts about linq-to-sql