NLog 搭配 Microsoft.Data.SqlClient

  • 145
  • 0
  • 2020-06-28

NLog 搭配 Microsoft.Data.SqlClient

nlog.config target

dbProvider="Microsoft.Data.SqlClient.SqlConnection, Microsoft.Data.SqlClient"

參考
https://github.com/NLog/NLog/wiki/Database-target#dbprovider-examples