Solved

Entity Framework edmx across projects

Posted on 2011-02-14
6
807 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
[X]
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
6 Comments
 
LVL 12

Expert Comment

by:Praveen Kumar
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:Praveen Kumar
ID: 34894393
You mean you see Data in XML? or databse Schema?
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 12

Expert Comment

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

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

728 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