How to use @DbLookups in different database

后端 未结 1 912
半阙折子戏
半阙折子戏 2021-01-21 23:45

Ok this seems so silly but I\'m having some trouble getting this to work. I want to do an @DbColumn() or @DbLookup() to another database. Same server - BUT it\'s in a folder.

相关标签:
1条回答
  • 2021-01-22 00:24

    Try:

        var dbname = session.getServerName() + "!!" + "myfolder\\myDB.nsf";
        return @DbColumn(dbname, "byCode", 0)
    
    0 讨论(0)
提交回复
热议问题