Relative path to DB in connection string
问题 I am developing a db application in C# and my current connection string is @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\Shop.accdb;Persist Security Info=False;" How can I modify it so that the db is in the folder of the project and not in D? I mean I am planning to send the project to a friend so I don't want to include the full path but just the folder of the project. Thank you in advance! 回答1: Change your connection string to @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=