Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Pomelo.EntityFrameworkCore.MySql 处理 NLog,根据文档,我知道 Pomelo 基于MySqlConnector,但我不知道文件 nlog.config 中目标的 dbProvider 的值是什么。
NLog DatabaseTarget 需要一个 ADO-provider。使用 .Net Refactor 检查 MySqlConnector.dll 后,它应该是这样的:
dbProvider="MySql.Data.MySqlClient.MySqlConnection,MySqlConnector"
注意 Pomelo.EntityFrameworkCore 是一个 EF Core 提供程序(下面使用 ADO 提供程序)