Solved

Entity Framework edmx across projects

Posted on 2011-02-14
6
801 Views
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.
0
Comment
Question by:DistillingExperts
  • 4
  • 2
6 Comments
 
LVL 12

Expert Comment

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

Author Comment

by:DistillingExperts
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.
0
 
LVL 12

Expert Comment

by:Mamtha1982
ID: 34894393
You mean you see Data in XML? or databse Schema?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 12

Expert Comment

by:Mamtha1982
ID: 34894395
0
 

Author Comment

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

Accepted Solution

by:
Mamtha1982 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.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 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