C# MVC - Different context

Asked

Viewed 31 times

0

Good morning,

I have two Dbcontextprincipal and Dbcontexthist context that have the classes Bill and Contahist, respectively. In the main Dbcontext has the class Client. I would like to do the Join between Contahist and Customer to get the name of the customer, but as it is different context I am not getting.

  • present your code... but a Join itself, does not make much sense in different contexts

  • as far as I know there is no way to give Join in different contexts

  • @Lucasmiranda, in SQL Server can use Linked Server. I think using the Entity Framework has not as same.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.