[英]database file doesn't appear in my explorer
I follow this tutorial but in the end I can't find out where the School.sdf in the Solution Explorer although everything works fine. 我遵循这个教程,但最后我无法找到解决方案资源管理器中的School.sdf尽管一切正常。
I rewrite my connection string exactly the same as the one written in the tutorial 我重写了与教程中编写的连接字符串完全相同的连接字符串
<connectionStrings>
<add name="ApplicationServices"
connectionString ="data source=|DataDirectory|School.sdf"
providerName="System.Data.SqlServerCe.4.0" />
<!-->="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
-->
</connectionStrings>
你可以点击解决方案顶部的“显示所有文件”显示所有文件,然后如果你可以看到school.sdf文件,那么你可以右键单击school.sdf文件,项目中包含的选项
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.