I have two entities, each from a different database and therefore different edmx files. There is, however, an infered relationship between them.
Foo
has many Bar
s for example.
What's the easiest way to do this join in the EntityFramework, with fewest database calls?
Thanks.
You can do this by adding cross-model navigation properties. This requires manually editing the EDMX. There is an example, including LINQ to Entities, here.
You can do this by using Views to represent data in the other database. Read about cross database joins in EF
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With