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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:51:06+00:00 2026-05-26T14:51:06+00:00

Using Entity 4.1 for a project, and couldn’t figure out where the DB file

  • 0

Using Entity 4.1 for a project, and couldn’t figure out where the DB file been stored inside my project.

I think I’ve read that Entity code first will still store your data in SQL Express DB at a default location, but couldn’t find out where it is.

What I did is:

  1. create Entity DB project (Project A) in my solution, this project will have an Initializer to generate sample data for testing.

  2. I also create a separate project (Project B) to save my Entity Code first data for testing by another application.

  3. Then I create another WinForm project(Project C) in the same solution, and access DBContext from Project A.

I would assume that the DB should be somewhere in my Project C, and test projects in the solution shouldn’t make a difference?

  • 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-26T14:51:07+00:00Added an answer on May 26, 2026 at 2:51 pm

    With a default installation of SQL Server Express and no connection string the database will be created in the DATA directory of the installation, for example something like: C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA (for 2008 R2 version). The name of the database is namespace.contextname, for example: MyNamespace.MyContext.mdf (and .ldf). Under this name you can also find them in SQL Server Management Studio.

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

Sidebar

Related Questions

I'm using Entity Framework in my project, and I have the problem that, once
I successfully created my first Entity Framework Code first project using SQL Server CE.
I have been using Entity Framework CTP with Code-First as in this tutorial by
Last year I developed a data access service for our project using Entity Framework
I am using LINQ to Entity in a project, where I pull a bunch
I've got new project on the go and I'm looking at using the Entity
in our current project we are using ADO.NET Entity Framework as data layer for
I am new to Entity Framework, and ORM's for that mather. In the project
I am successfully creating database (SQL Ce) using Entity Framework Code First approach (C#-WPF).
I'm creating a database using entity framework code first and I'm having some issues

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.