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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:28:08+00:00 2026-06-06T00:28:08+00:00

I have a problem using a local SQL Server CE database with C# and

  • 0

I have a problem using a local SQL Server CE database with C# and EF.

I have a new created database file with one table and three columns. I add some data by using EF. My program, that adds the data, can read that data.

If I open the table with vs2010 the tables are empty. After that I start my program again and now there are no data too.

Anyone an idea what is going wrong here?

Bye

  • 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-06-06T00:28:10+00:00Added an answer on June 6, 2026 at 12:28 am

    Go to properties of Sql CE database and set Copy To Output to “If newer”

    Check ones you run the program and updates added go to $projectname$\bin\Debug or \Release and check database in there.

    Reason behind this:

    Default properties of Normal a database file has Build Action set to “Content” and Copy To Output option set to “Copy Always”. then every time you build, your database from Visual Studio project is copied to your build or release folder and overwrites your existing database with the data added at runtime.

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

Sidebar

Related Questions

I have problem with android 4.0.3. I'm using the method below to get local
I have a problem using the SSIS. I try to import data from database
First a little introduction. We have an SQL Server Express 2008 database, which schema
I have installed ASP.NET application with database on our server. ASP.NET application created database
I have a class library that attaches itself a tiny SQL Server database that
I have a table in SQL Server 2008 R2 consisting of about 400 rows
I have a SQL Server 2008 procedure that sends email via sp_send_dbmail. I'm using
I have a weird problem with my local database. I added it as a
I have problem using arabic font for iOS. All fonts have the same render,
i have problem using LIKE structure in DB2 : for example: select * from

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.