locked
Multiple Database RRS feed

  • Question

  • Hello,

     

    Did I misunderstand this or can I use more than one database in an Entity Model?

    I just made the transition from LINQ to SQL to the Entity Framework and this was one of the reasons I made the transfer.

     

    I have 2 tables in separate databases and I would like to define an association between them. Is this possible or do I have to make two comp0letely separate models for each database?

    Wednesday, March 16, 2011 4:44 PM

Answers

  • Hello Stijn,

     

    Thanks for posting here.

    As I know, this is currently not supported. Every EDM is connected only to one database but we can include more than one EDM in the solution.
    In such cases we can map to multiple data sources in our code (but we'll have more than one EDM). For defining an association between two tables in the different databases, I think that's currently not supported.

    I hope this can help you.

     

    Have a nice day,


    Jackie Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Rowan Miller Friday, March 25, 2011 9:02 PM
    • Marked as answer by Jackie-Sun Monday, March 28, 2011 2:16 AM
    Thursday, March 17, 2011 8:25 AM