项目【属性】->【生成】->【条件编译符号】,用“;”(分号)隔开。如图:
接着在代码就可以使用:
#if MSSQL ... ...#endif#if ORACLE... ...#endif
posted on 2020-10-24 16:46 禅道 阅读(684) 评论(0) 收藏 举报