Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:10:22+00:00 2026-06-15T22:10:22+00:00

Is it possible to have an entity model created out of two databases, with

  • 0

Is it possible to have an entity model created out of two databases, with all the relationships between tables reflected in the model? How do you do that?

I am referring to ADO.NET Entity Framework version 4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:10:23+00:00Added an answer on June 15, 2026 at 10:10 pm

    Maybe. It depends on several factors.

    If using a modern version of SQL Server, there is a feature called Synonyms, which allows you to “map” a table from one database into another.

    Unfortunately, the EF Data designer doesn’t recognize or understand Synonyms. There is a way to manually merge two .EDMX files into one, but this is a huge pain.

    When using Synonyms, I prefer to use the Code First approach. I use the Entity Framework Power Tools extension to reverse engineer the tables to a code first model, and this works fine with synonyms.

    If you want to use .EDMX, then you can try the approach here:

    http://rachel53461.wordpress.com/2011/05/22/tricking-ef-to-span-multiple-databases/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have a many to many relationship between two tables, and
We have 3 tables in our db that each have an entity in our
I have created a Entity Framework 4 model with Visual Studio 2010 and generated
Is it possible for a model to belong_to, two models and have a nested
I have an Entity Framework model that was generated by the Visual Studio 2008
Is it possible to configure an Entity Framework model so that, when creating a
I have an entity model with User and Person entities, such that each User
I have created an entity model. I want to get the primary key name
I have a non-ndb entity that is created and a webapp2 User who owns
it's possible to have one entity object (class, e.g. User) for more entity models

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.