在旧版本的DacFx中,有一个DacStore类可用于检索(例如)当前安装的DAC包的版本。如何用DacFx 3.0做到这一点?我们是否应继续使用较旧的类来实现此功能?
答案 0 :(得分:1)
根据this forum post,没有办法使用API来获取当前安装的版本。 :( 另请参阅Upgrading DACPACs with DACFx 3.0 API - How to inspect current DAC version of an existing database?
我在这里举例说明了如何以编程方式(使用SQL查询)获取版本:https://stackoverflow.com/a/30471951/9976