Linq to Entities / Entity Framework cross edmx “join”

前端 未结 2 1908
离开以前
离开以前 2021-01-03 03:10

I have two entities, each from a different database and therefore different edmx files. There is, however, an infered relationship between them.

Foo has

相关标签:
2条回答
  • 2021-01-03 03:49

    You can do this by using Views to represent data in the other database. Read about cross database joins in EF

    0 讨论(0)
  • 2021-01-03 03:54

    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.

    0 讨论(0)
提交回复
热议问题