A hasty study tells me that even EF4 still does not support SQL Server synonyms. What are my options for customizing an entity based on synonyms, as if it were a set of objects based on a table? The coarsest thing I came up with was to copy the base table for the synonym, add it to my model and then rename the object installed in the repository model. Is there a more elegant workaround using the POCO or code-first approach?
See this post - apparently, you can do this using the manual edmx control.
Creating an Entity Structure Model Spans Several Databases
It is not elegant, however, therefore it does not answer your question :-)
You can create a view that will select data from your synonym, and then add a view to your model. Providing a representation in your model with a synonym name.
Source: https://habr.com/ru/post/649875/More articles:How to use two classes with the same name in different packages? - javaA query with nHibernate where the current date is between publishDate and the expiration date - dateCan anyone recommend an elegant "No IE6 Support" script? - javascriptNHibernate criteria query help - nhibernateCross-Domain Integrated Windows Authentication in IIS for ASP.NET Website - securityJQuery functions do not respond after adding () - javascriptscrollHeight property in FireFox - javascriptwhy do we need apache server when deploying rails application? - ruby | OverflowIntroduce Util class using Google Guice vs static Methods? - javaiOS: Can I customize the "Open in ..." menu when previewing a document? - iosAll Articles