[英]Local database in MS Visual Studio 2010
I found out today about the existance of this feature in VS 2010 C# and I didn't really find out pretty much googling it. 我今天发现了该功能在VS 2010 C#中的存在,但实际上并没有发现很多关于Google的功能。 Actually, I have the following questions:
实际上,我有以下问题:
You could use LocalDb . 您可以使用LocalDb 。
Your data won't be erased when you close your application. 关闭应用程序时,不会删除您的数据。
In order to add/delete/retrieve content to your localDb, have a look to Entity Framework . 为了向您的localDb添加/删除/检索内容,请查看Entity Framework 。
If you are refering to the SQL Express instance of a database you can create in Visual Studio, then the answer is the data is stored until you delete it (same as any other database) and persists across closing the application you create and VS being closed down. 如果您引用的是您可以在Visual Studio中创建的数据库的SQL Express实例,那么答案是数据将一直存储到删除为止(与任何其他数据库相同),并且在关闭创建的应用程序和关闭VS之前一直存在下。
You can think of it as a portalable database that you can take with your project until it's ready to be released into the wild. 您可以将其视为可用于项目的门户网站数据库,直到准备好将其发布。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.