Joining tables from two databases using entity framework

前端 未结 4 1635
心在旅途
心在旅途 2020-12-17 17:09

I am working on an ASP.NET MVC 4 web application. I am using Entity Framework as the data access layer, using database first approach (.edmx file).

Curr

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 17:36

    you can create a view or a stored procedure, your sql statement can then make cross db query just make sure your credentials can DML or DDL on both db. otherwise try the nested using entities that will make sure you will not get the linq bug when you dont declare the db entity inside a using statement.

提交回复
热议问题