When I added the Data at the Database I can not find it on, but its shows to me, it is added, but when I re-run the application I can not find this is my sqlconnection :
SqlConnection conn = new SqlConnection(@"Server=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|direct.mdf;Trusted_Connection=Yes;Integrated Security=True;User Instance=True");
and i use app config because i wanna deploye my application on machine client
<add name="DIRECTPERFERMANCE.Properties.Settings.directConnectionString"
connectionString="Server=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\direct.mdf;Trusted_Connection=Yes;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>