I am using Visual Studio 2010 with SQL Server Express and LINQ to SQL
The application runs correctly when inserting data into the database during application execution.
database1.mdf=====> properties =======>copy output direction=copy always
This is why. You are editing a copy of the database each time you start a new debug session. Set it to do not copy and your updates will persist.
do not copy