SQL Compact 3.5 attach multiple DB/ cross-db query?

ⅰ亾dé卋堺 提交于 2019-12-11 00:58:36

问题


Is it possible to attach multiple DBs to SQL CE 3.5 (Compact edition) e.g. MasterData.sdf, Orders.sdf and apply queries against them e.g.: select Orders.iOrderID, Orders.cItemID, MasterData.cItemDesc from Orders.CustomerOrder as Orders left join MasterData.Items as Items on Orders.cItemID = Items.cItemID

I need this because of sync optimization (many small databases vs. one big database).


Is there any other solution to merge two (many) sdf-s into one ?


回答1:


No, this is not possible - but you could load each table as a list of business objects, and use LINQ to query cross these collections. (Requires more memory)



来源:https://stackoverflow.com/questions/2067903/sql-compact-3-5-attach-multiple-db-cross-db-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!