草庐IT

providerName

全部标签

c# - 为 .NET 产品支持多个数据库的最佳方式是什么?

我们正在设计一个可以支持多个数据库的产品。我们目前正在做这样的事情,以便我们的代码支持MSSQL和MySQL:namespaceHandlers{publicclassBaseHandler{protectedstringconnectionString;protectedstringproviderName;protectedBaseHandler(){connectionString=ApplicationConstants.DatabaseVariables.GetConnectionString();providerName=ApplicationConstants.Datab

c# - 调试 AzureFunction 以及部署 azure 函数时缺少 ProviderName

我在获取DbContext以从我的local.settings.json正确提取连接字符串时遇到问题上下文:这是一个Azure函数项目主要问题代码在System.Data.Entity.Internal.AppConfig虽然我有一个local.settings.json文件,但这不是dotnet核心。这是.net4.6.1错误信息:'Theconnectionstring'ShipBob_DevEntities'intheapplication'sconfigurationfiledoesnotcontaintherequiredproviderNameattribute."'Jso

.net - 在 App.config 中存储 MySQL 连接字符串时,providerName 属性应设置为什么值?

在App.config中存储MySQL连接字符串时,providerName属性应设置为什么值?例如,在下面的App.config文件中,我应该为providerName使用什么值?重要吗? 最佳答案 试试这个: 关于.net-在App.config中存储MySQL连接字符串时,providerName属性应设置为什么值?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/13607