Click here to Skip to main content
15,891,902 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more: , +
Hi,

I want to have a few ADMX files (in different projects) which will inherit one from another.
Searching a little bit online, I found out that the way to do that is using POCO.

I tried that. First I got only one ADMX, and everything worked fine.
I added another project, with a brand new entity, in the class generated in POCO tamplate I added the inheritance from the other class (which is in the first project).
I added both's project's references to my tester project (Web Application) and I got a runtime error:

SQL
Schema specified is not valid. Errors:
Model1.ssdl(3,4) : error 0019: The EntityContainer name must be unique


I checked, and the EntityContainer is not the same in both projects.

I should mention that both EDMX files are working with the same database.

Note: I had many more problems (such as:
SQL
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid

then I added both connection strings from both projects app.config.
and then out of some sort of reason I got:
SQL
Error 3027: No mapping specified for the following EntitySet/AssociationSet


Since I couldn't find the solution anywhere (and to be honest, kind of got lost) I started a brand new solution and got to the point that I mentioned before.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900