I have attached database on my project as I wanted this to be deployed so I used the connection string
Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Inventory_System.mdf;Integrated Security=True;Connect Timeout=30
I have saved some data in the database but when the app is restarted, the data is gone on the data grid view, not only that the data preview on the dataset is empty too.
I already changed the database property Copy to Output Directory to "Do not copy" so it won't be re written every build and run, but nothing's changed any ideas what went wrong?