I am using entity framework 6.1 and I have two databases.
CustomerDBCustomerArchiveDB
Both have a Customer table with columns Name, Address, Year etc.
I want to get all the customers from both databases using Entity Framework.
How do I do this?
I am using entity framework 6.1 and I have two databases.
CustomerDBCustomerArchiveDBBoth have a Customer table with columns Name, Address, Year etc.
I want to get all the customers from both databases using Entity Framework.
How do I do this?
Create 2 EF models, one for each database. Materialize the objects with ToList or ToArray from each DbContext and then Concat them together in memory.