Solved

Entity Framework edmx across projects

Posted on 2011-02-14
6
797 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now