Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 823
  • Last Modified:

Entity Framework edmx across projects

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
DistillingExperts
Asked:
DistillingExperts
  • 4
  • 2
1 Solution
 
Praveen KumarArchitectCommented:
You cannot... edmx file is just visual representation for the entities.
0
 
DistillingExpertsAuthor Commented:
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
 
Praveen KumarArchitectCommented:
You mean you see Data in XML? or databse Schema?
0
Independent Software Vendors: 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!

 
Praveen KumarArchitectCommented:
0
 
DistillingExpertsAuthor Commented:
I still need to have one edmx to bwe used in different project. Is that not possible?
0
 
Praveen KumarArchitectCommented:
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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now