Solved

Entity Framework edmx across projects

Posted on 2011-02-14
6
799 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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