I have created a database with several tables, and I also created a C# Windows forms application. Occasionally, after testing the application, I will find tables empty that were filled using the application (and stayed full upon several further testing - data can also be seen on vs server explorer => show table data).
Not only are tables empty but the only data that I do access when this occurs is data that I have entered from a long time ago and I have deleted (while I was testing deleting from my tables).
I have put using{ ... }
around all my code that connects to databases, It is a one off event , if I run the code, edit some of table data in the application, the database will change, then if I will run again and the data will be updated from the last run, several times later - randomly the data will go missing...
My connection string points to the file in my output directory, my database copies if newer. VS 2017, if you need anymore information I will edit
Anyone got any leads?
For school coursework