简体   繁体   中英

Use Entity Framework and dynamically connect to a third party database

I am working on an application where the ui may connect to multiple databases. Some of these databases have static schema. Others need to be queried based on schema provided by the admin (dynamically).

I want to be able to use the features of Entity Framework when working on the static databases and somehow use ADO.Net for the dynamic databases.

Also there is a possibility that a static db has 90% expected schema but few tables are generated dynamically. So I want Entity Framework to just work with the models I have defined. I dont want it to crib about the dynamic tables which got generated.

Is there a way ? Am I making sense ?

尝试引用此链接及其过于复杂以至于无法映射EF运行时,因此最好将其与动态事物一起使用,并尝试将静态事物放入EF中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM