Entity Framework 4 and synonyms

If there is a table named “MyTable” in database A that actually comes from a synonym pointing to another database (B), can I create this table as an object in the Entity Framework model that represents database A, since it really is in another database?

I am wondering if the situation has improved with EF 4: http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/fff1067a-650d-4b47-a4e8-79eedebe5c11/

Thank.

+3
source share
2 answers

,

CREATE view [dbo].[MyTable] as
  select * from B.dbo.MyTable

Entity Framework .

+1

Source: https://habr.com/ru/post/1771367/


All Articles