❔ C Sharp Windows Form executable with local database
Hello guys, I've made a project in C# Windows Forms that uses local database (Azure). Since it's local that means that program will only work on my computer. However, my lecturer wants to have this program working on his computer. How would I do that? Right now, my connection is hardcoded to my computer
SqlConnection Con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\david\Documents\AFDb.mdf;Integrated Security=True;Connect Timeout=30");
SqlConnection Con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\david\Documents\AFDb.mdf;Integrated Security=True;Connect Timeout=30");