为什么创建ASPNETDB.mdf,如何摆脱它? [英] Why is ASPNETDB.mdf created and how do I rid myself of it?

查看:63
本文介绍了为什么创建ASPNETDB.mdf,如何摆脱它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题中列出了我的问题,但提供了一些背景知识.

My question is stated in the title, to give some background though.

我正在帮助客户在ASP.net环境中使用Web部件,但我不希望它们附加到此数据库中.我希望能够在不创建该数据库的情况下使用该网站.

I'm helping a customer use webparts within a ASP.net environment and I don't want them to get attached to this database. I'd like to be able to use the site without it creating this database.

我目前正在对此进行更多的研究,但是非常欢迎您浏览网站上的任何建议或相关信息.

I'm currently researching more into this, but any suggestions on sites to look at or information regarding this will be much appreciated.

推荐答案

大多数配置都保存在此数据库中.它的创建是为了保留会员资格和个性化工作所需的所有复杂数据.

Most of your configuration is saved in this database. It's created to hold all the complex data that is necessary for membership and personalization to work.

如果指向其他数据库,则可以您已经进行了设置,但是现成的,Visual Studio使用此本地文件作为数据库.

You can point to a different database if you have one set up, but out of the box, Visual Studio uses this local file for the database.

我认为Web部件依赖于数据库的可用性,因此您需要保留此数据库,或者遵循

I believe that web parts relies on having the database available, so you'll need to keep this database, or follow the link above to use a centralized database.

http://msdn.microsoft.com/en-us/library/879kf95c(VS.80).aspx

这篇关于为什么创建ASPNETDB.mdf,如何摆脱它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆