在运行时NLOG目标数据库设置连接信息 [英] Nlog Target Database set connection information at runtime

查看:431
本文介绍了在运行时NLOG目标数据库设置连接信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用NLOG和数据库的目标,是有办法在运行时设置的连接信息?

Using Nlog and a Database target, is there a way to set the connection information at runtime?

推荐答案

我记得一些我的同事在做类似的事情。他发现这个答案:的 http://nlog-forum.1685105.n2.nabble.com/DDL-for-Database-Table-How-to-set-Connection-String-Programmatically-td5241103.html 了。是工作完全正常

I remember some colleague of mine doing something similar. He found this answer: http://nlog-forum.1685105.n2.nabble.com/DDL-for-Database-Table-How-to-set-Connection-String-Programmatically-td5241103.html that was working perfectly fine.

(注:我想贴的答案,但因为它是NLOG论坛不应该消失)

(Note: I wanted to paste the answer, but as it is on NLog forum it should not disappear)

这篇关于在运行时NLOG目标数据库设置连接信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆