实体框架连接 [英] entity framework connections
本文介绍了实体框架连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用实体框架ado.net。我已经生成了一个.edmx并使用了实体。
有没有办法切换这个实体的数据源。我有两个数据库,在某些条件下,我需要访问不同的来源。
foxjazz
解决方案
< blockquote>您好这是一个GAX / GAT特定论坛,请尝试在EF特定论坛发帖提问。
感谢
圣何塞。
I am using entity framework ado.net. I have genereated a .edmx and using the entities.
Is there a way to switch data sources for this entity. I have two databases, and during certain conditions, I need to access a different source.
foxjazz
解决方案
Hi
this is a GAX/GAT specific forum, please try to post your question in the EF specific forum.
thanks
jose.
这篇关于实体框架连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文