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 809453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:43:57+00:00 2026-05-15T00:43:57+00:00

I use a .mdf database for my asp.net Mvc project. The project is on

  • 0

I use a .mdf database for my asp.net Mvc project. The project is on source control on a tfs.

When I debug the project, Visual Studio copies the database in to the debugmap.
The problem is, when I debug next time, the changes (while testing the previous time) in the database are gone. The reason of this I know, Visual studio copies the original database again in to the debug map.

Can I change some settings in Visual studio to work always on the same database without copying the database after each debug session myself? So I can keep my modified records?

Or how do I have to work with my database while developing?

Greets

  • 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-15T00:43:57+00:00Added an answer on May 15, 2026 at 12:43 am

    Yes you can. On the properties of your database in Visual Studio you can set ‘copy to output folder’ to ‘only if newer’.

    And because visually always works better than read(ally?):

    picture!

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

Sidebar

Related Questions

ASP.Net MVC apps have a business database FOO.MDF and a seperate accounting database ASPNETDB.MDF
From Entity Framework using ASP .NET MVC 3.0, is it possible to use a
I'm working on an ASP.NET MVC site which will have a database. While I'm
I have created my site using ASP.NET Personal Starter Kits 3.5. I use Visual
I'm just starting out learning ASP.NET MVC. I'm working on a project created with
I have written a C# program in Visual Studio 2010 . I use database
I use to attach a database to my server explorer in visual studio 2010,
I have the following project solution: There is a ASP.NET MVC Web Application where
I'm trying to create a database within the app_data folder of an asp.net mvc
I am trying to make the default ASP.NET MVC application use a remote Oracle

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.