Is it possible to perform joins across different databases using LINQ?

前端 未结 2 2050
天命终不由人
天命终不由人 2020-12-03 17:50

Is it possible to perform joins across different databases using LINQ? If yes then how?

2条回答
  •  渐次进展
    2020-12-03 18:06

    If the databases are on the same server, you can create views (and 3 part naming) so that all the tables are queryable from one database.

    If the databases are on different servers, you can use linked servers and views (and 4 part naming) so that all the tables are queryable from one database.

提交回复
热议问题