Asp.net core “替代方案”是什么;透明网络IPResolution“;在ASP.NET内核中

Asp.net core “替代方案”是什么;透明网络IPResolution“;在ASP.NET内核中,asp.net-core,asp.net-core-mvc,asp.net-core-2.0,asp.net-core-webapi,asp.net-core-2.1,Asp.net Core,Asp.net Core Mvc,Asp.net Core 2.0,Asp.net Core Webapi,Asp.net Core 2.1,我在ASP.NET MVC中使用了“透明网络IPResolution”这个关键字 在SQL连接字符串中。 我的代码如下 <add name="LocalString" connectionString="Data Source=Server;Initial Catalog=LocalDBName;User ID=User;Password=****;TransparentNetworkIPResolution=false" providerName="System.Data.SqlClie

我在ASP.NET MVC中使用了“透明网络IPResolution”这个关键字 在SQL连接字符串中。 我的代码如下

<add name="LocalString" connectionString="Data Source=Server;Initial Catalog=LocalDBName;User ID=User;Password=****;TransparentNetworkIPResolution=false" providerName="System.Data.SqlClient" />

这是给我一个错误ASP.NET核心 错误消息“关键字不支持”


有人能帮我解决这个问题吗?

关注新的SqlClient功能一项改进正在转移到新的Microsoft.Data.SqlClient包

请看

用于SqlClient包的Github repo是:

为了反映API的当前状态,下面列出了System.Data.SqlClient上的.NET Framework中存在的类、枚举和成员,以及.NET Core版本的Microsoft.Data.SqlClient中缺少的类、枚举和成员:

Class SqlDataSourceEnumerator       
Class SqlAuthenticationInitializer      
Class SqlAuthenticationParameters       
Class SqlAuthenticationProvider     
Class SqlAuthenticationToken        
Class SqlClientLogger       
Class SQLDebugging       
Enum    SqlAuthenticationMethod 

Property    SqlBulkCopyOptions  AllowEncryptedValueModifications    
Property    SqlCommand  NotificationAutoEnlist  
Property    SqlConnectionStringBuilder  AsynchronousProcessing  
Property    SqlConnectionStringBuilder  Authentication  
Property    SqlConnectionStringBuilder  NetworkLibrary  
Property    SqlConnectionStringBuilder  TransparentNetworkIPResolution  
Property    SqlParameterCollection  IsSynchonized

你确定你需要那个关键词吗?它以非常具体的方式影响连接尝试,请参阅