Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7612269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:52:05+00:00 2026-05-31T01:52:05+00:00

I am using Visual Studio 2010 to build a web app using C# ASP.NET

  • 0

I am using Visual Studio 2010 to build a web app using C# ASP.NET MVC 3 using Entity Framework.

The program’s default location for the database is in the App_Data folder of the project. After playing around with adding class libraries, when I try to create an entity data model, it asks to copy the database to that project. I find this rather inconvenient.

Would it be better to point to the database from a location outside of the App_Data folder, or even outside the entire solution? If so, where would you suggest I point to? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:52:07+00:00Added an answer on May 31, 2026 at 1:52 am

    You don’t say which DB you’re using.

    For non-trivial projects you would typically use a DB server such as SQL Server. When you configure SQL Server, you generally set up a dedicated location for DB files, at some appropriate place in your file system.

    I would typically put DBs in a place which is specified by the DB server, rather than in a place which is somehow related to the web app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Visual Studio 2010 RTM with .NET/Entity Framework 4 RTM with a model
I'm building an ASP.net application using Visual Studio Web Developer 2010 Express and have
I am using Visual Studio 2010 and using web deployment to promote the .Net
I am using Visual Studio 2010 to build a web application. When I click
I'm using MS WebDeploy out of Visual Studio 2010 to deploy a ASP.NET 2.0
I'm using Visual Studio 2010 for recording some web tests. I intend to build
We have a ASP.Net web application running in Visual Studio 2010 that is targeting
For reference, I'm using Visual Studio 2010. I have a custom build step defined
I am using Visual Studio 2010 RC1. I define a resource Brush2 in app.xaml_:
I'm using the Visual Studio 2010 RC for .NET 4.0 and I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.