Can code-first Entity Framework do cross database queries with SQL Server DBs on the same box?

后端 未结 4 1870
终归单人心
终归单人心 2020-12-31 09:06

I know there have been a lot of questions about Entity Framework doing cross database queries on the same server posted to stackoverflow. Mostly the answer seems to be \'no\

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 09:53

    The answer is still the same. If you want to execute cross database query you have to fall back to SQL and use SqlQuery on context.Database.

提交回复
热议问题