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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:37:59+00:00 2026-06-12T20:37:59+00:00

I am creating a database with Entity Framework 4 and Visual Studio 2010. I

  • 0

I am creating a database with Entity Framework 4 and Visual Studio 2010.

I am fine with the first steps – I am going model first, so I successfully created the model and now there is a valid .edmx file in my solution.

My goal is the following: I want to generate the database and add it to the solution so I can give the solution to another person and they will be able to build it and run it – I do not want the database connection be dependent on any of my local settings, and I do not want them to have the need to recreate the database, it will have some ‘seed data’ in it. That should be possible, I saw similar solutions.

I would appreciate advice on how to do that.

  • 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-12T20:38:01+00:00Added an answer on June 12, 2026 at 8:38 pm

    Use SQL Server Express and put database files to App_Data directory (for web application) or make them solution items copied to output for other application. Change connection string to attach the file – it should look something like:

    AttachDbFileName=|DataDirectory|\YourDB.mdf;Initial Catalog=YourDB;Integrated Security=SSPI
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a new database model using Entity Framework 4.3 Code-FIrst; using Fluent
I am successfully creating database (SQL Ce) using Entity Framework Code First approach (C#-WPF).
When creating a database using Entity Framework code-first, a lot of the database model
I'm creating a database using entity framework code first and I'm having some issues
I Am creating a web application and first use Entity Framework. I created Entity
I'm using Entity Framework Code First. The database initialization works great for creating the
Consider a Visual Studio 2010 project whose requirement is to model the data using
Possible Duplicate: Exclude a field/property from the database with Entity Framework 4 & Code-First
When creating an entity framework model from scratch it is possible to specify a
I use entity Framework 4.2 and MVC 4 I Got this model/Database structure UserInformation

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.