Entity Framework with Multiple MySQL Databases
Possible Duplicate:
EF4 cross database relationships
Is it possible to have 3 databases:
And using (for example) Entity Framework with FK like:
Is it possible to have this kind of relationships on EF?
In general it should be possible to have those 3 databases in the same project.
But I see some troubles rising by the possible differences in the implementations of the EF data provider for the various database systems. All databases behave slighty different and it might happen that some code that works with one DB might produce errors with the next one.
The general idea of the Entity Framework should abstract your code from troubles like this, but reality shows that you still might encounter some quirks.
To your second question, foreign keys over different databases look too dangerous to me to even think about it. Just think aout a possible faile of one database that then needs to be reset.
Then what happens to everthing in the other two databases? How will you enfore data integrity for all changes that happend between failure and restore...?
This would without a doubt put a lot of pressure on your foreign keys and who-knows-what-else...
链接地址: http://www.djcxy.com/p/37442.html上一篇: 用于国际和多语言目的的数据库建模
下一篇: 具有多个MySQL数据库的实体框架