Is there any way to implement cross database querying in Entity Framework? Let’s imagine I’ve two Entities User and Post, User entity is in database1 and Post is in database2, which means those entities are in separate databases. How should I get user’s posts in Entity Framework ?
Is there any way to implement cross database querying in Entity Framework? Let’s imagine
Share
EF context does not support cross database queries. You need to expose posts in database1 through SQL View (or synonym) and use it as part of that database.