Entity Framework edmx across projects

Posted on 2011-02-14
Last Modified: 2012-05-11
I have an edmx file that I would like to use in different projects. I have it in project1 and would like to use it in project2 as well. How do I reference it in project 2? Right now I have to create identical edmx files in both projects.
Question by:DistillingExperts
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 12

Expert Comment

by:Praveen Kumar
ID: 34889284
You cannot... edmx file is just visual representation for the entities.

Author Comment

ID: 34889541
I am sorry but edmx seems to be much more then simply a visua representation. If I visualize it in xml I can see the entire database that I am using mapped on it.
LVL 12

Expert Comment

by:Praveen Kumar
ID: 34894393
You mean you see Data in XML? or databse Schema?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 12

Expert Comment

by:Praveen Kumar
ID: 34894395

Author Comment

ID: 34894774
I still need to have one edmx to bwe used in different project. Is that not possible?
LVL 12

Accepted Solution

Praveen Kumar earned 500 total points
ID: 34895217
Then create a separate project(blank or class library) for entities (edmx).
Than add references to your other projects and use those classes.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question