I have 2 EntityFramework contexts and corresponding API controllers.
I have 2 Breeze entityManager.
I read some Country data with entityManager1.
I read some Company data with entityManager2.
Now I wand to display the following list:
CompanyName1 CountryName1
CompanyName2 CountryName2
etc.
In Knockout it would look something like this:
<table data-bind="foreach: companies">
<tr>
<td data-bind="text: name"></td>
<td data-bind="text: country().name"></td> <!-- from another entitymanager -->
</tr>
</table>
Is this possible. I have tried:
- using exportEntities on entityManager1 / importEntities on entityManager2
- added a second dataService to entityManager2, so the same metadata of entityManager1 is available
No luck so fare.
Is there a way to solve this?
Is there a way to combine the data from one entityManager with onther one?
Is there a way to setup an foreign key relationship between two different metadataStores entites?
Thankx, Cheers Harry