Skip to content

Commit aa95223

Browse files
authored
Refactor SqlConnectionString.cs (#1359)
1 parent 884c67c commit aa95223

File tree

18 files changed

+59
-58
lines changed

18 files changed

+59
-58
lines changed

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,10 @@
634634
</ItemGroup>
635635
<!-- Resources -->
636636
<ItemGroup>
637-
<Compile Include="Resources\$(ResxFileName).Designer.cs">
637+
<Compile Include="Resources\Strings.Designer.cs">
638638
<AutoGen>True</AutoGen>
639639
<DesignTime>True</DesignTime>
640-
<DependentUpon>$(ResxFileName).resx</DependentUpon>
640+
<DependentUpon>Strings.resx</DependentUpon>
641641
</Compile>
642642
<Compile Include="..\..\src\Resources\StringsHelper.cs">
643643
<Link>Resources\StringsHelper.cs</Link>

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,15 +2267,6 @@ internal TdsParser Parser
22672267
}
22682268
}
22692269

2270-
internal bool Asynchronous
2271-
{
2272-
get
2273-
{
2274-
SqlConnectionString constr = (SqlConnectionString)ConnectionOptions;
2275-
return ((null != constr) ? constr.Asynchronous : SqlConnectionString.DEFAULT.Asynchronous);
2276-
}
2277-
}
2278-
22792270
//
22802271
// INTERNAL METHODS
22812272
//

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlUtil.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ static internal Exception AuthenticationAndIntegratedSecurity()
461461
{
462462
return ADP.Argument(StringsHelper.GetString(Strings.SQL_AuthenticationAndIntegratedSecurity));
463463
}
464-
static internal Exception IntegratedWithUserIDAndPassword()
464+
static internal Exception IntegratedWithPassword()
465465
{
466-
return ADP.Argument(StringsHelper.GetString(Strings.SQL_IntegratedWithUserIDAndPassword));
466+
return ADP.Argument(StringsHelper.GetString(Strings.SQL_IntegratedWithPassword));
467467
}
468468
static internal Exception InteractiveWithPassword()
469469
{

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.Designer.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.de.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,8 +2493,8 @@
24932493
<data name="SQL_AuthenticationAndIntegratedSecurity" xml:space="preserve">
24942494
<value>"Authentication" kann nicht mit "Integrated Security" verwendet werden.</value>
24952495
</data>
2496-
<data name="SQL_IntegratedWithUserIDAndPassword" xml:space="preserve">
2497-
<value>"Authentication=Active Directory Integrated" kann nicht mit den Schlüsselwörtern "User ID", "UID", "Password" oder "PWD" für die Verbindungszeichenfolge verwendet werden.</value>
2496+
<data name="SQL_IntegratedWithPassword" xml:space="preserve">
2497+
<value>"Authentication=Active Directory Integrated" kann nicht mit den Schlüsselwörtern "Password" oder "PWD" für die Verbindungszeichenfolge verwendet werden.</value>
24982498
</data>
24992499
<data name="SQL_InteractiveWithPassword" xml:space="preserve">
25002500
<value>"Authentication=Active Directory Interactive" kann nicht mit den Schlüsselwörtern "Password" oder "PWD" für die Verbindungszeichenfolge verwendet werden.</value>
@@ -4617,4 +4617,4 @@
46174617
<data name="SQL_ParameterDirectionInvalidForOptimizedBinding" xml:space="preserve">
46184618
<value>Der Parameter "{0}" kann keine Ausgaberichtung oder InputOutput aufweisen, wenn EnableOptimizedParameterBinding für den übergeordneten Befehl aktiviert ist.</value>
46194619
</data>
4620-
</root>
4620+
</root>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.es.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,8 +2493,8 @@
24932493
<data name="SQL_AuthenticationAndIntegratedSecurity" xml:space="preserve">
24942494
<value>No se puede usar 'Authentication' con 'Integrated Security'.</value>
24952495
</data>
2496-
<data name="SQL_IntegratedWithUserIDAndPassword" xml:space="preserve">
2497-
<value>No se puede usar "Authentication=Active Directory Integrated" con las palabras clave de cadena de conexión "User ID", "UID", "Password" ni "PWD".</value>
2496+
<data name="SQL_IntegratedWithPassword" xml:space="preserve">
2497+
<value>No se puede usar "Authentication=Active Directory Integrated" con las palabras clave de cadena de conexión "Password" ni "PWD".</value>
24982498
</data>
24992499
<data name="SQL_InteractiveWithPassword" xml:space="preserve">
25002500
<value>No se puede usar "Authentication=Active Directory Interactive" con las palabras clave de cadena de conexión "Password" ni "PWD".</value>
@@ -4617,4 +4617,4 @@
46174617
<data name="SQL_ParameterDirectionInvalidForOptimizedBinding" xml:space="preserve">
46184618
<value>El parámetro “{0}” no puede tener la Dirección de salida ni InputOutput cuando EnableOptimizedParameterBinding está habilitado en el comando primario.</value>
46194619
</data>
4620-
</root>
4620+
</root>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.fr.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,8 +2493,8 @@
24932493
<data name="SQL_AuthenticationAndIntegratedSecurity" xml:space="preserve">
24942494
<value>Impossible d'utiliser 'Authentication avec 'Integrated Security'.</value>
24952495
</data>
2496-
<data name="SQL_IntegratedWithUserIDAndPassword" xml:space="preserve">
2497-
<value>Impossible d'utiliser 'Authentication=Active Directory Integrated' avec les mots clés de la chaîne de connexion 'User ID", "UID", "Password" ou "PWD".</value>
2496+
<data name="SQL_IntegratedWithPassword" xml:space="preserve">
2497+
<value>Impossible d'utiliser 'Authentication=Active Directory Integrated' avec les mots clés de la chaîne de connexion "Password" ou "PWD".</value>
24982498
</data>
24992499
<data name="SQL_InteractiveWithPassword" xml:space="preserve">
25002500
<value>Impossible d'utiliser « Authentication=Active Directory Interactive » avec les mots clés de chaîne de connexion « Password » ou « PWD ».</value>
@@ -4617,4 +4617,4 @@
46174617
<data name="SQL_ParameterDirectionInvalidForOptimizedBinding" xml:space="preserve">
46184618
<value>Le paramètre « {0} » ne peut pas avoir Direction Output ou InputOutput lorsque EnableOptimizedParameterBinding est activé sur la commande parente.</value>
46194619
</data>
4620-
</root>
4620+
</root>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.it.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,8 +2493,8 @@
24932493
<data name="SQL_AuthenticationAndIntegratedSecurity" xml:space="preserve">
24942494
<value>Non è possibile usare 'Authentication' con 'Integrated Security'.</value>
24952495
</data>
2496-
<data name="SQL_IntegratedWithUserIDAndPassword" xml:space="preserve">
2497-
<value>Non è possibile usare 'Authentication=Active Directory Integrated' con le parole chiave della stringa di connessione 'User ID', 'UID', 'Password' o 'PWD'.</value>
2496+
<data name="SQL_IntegratedWithPassword" xml:space="preserve">
2497+
<value>Non è possibile usare 'Authentication=Active Directory Integrated' con le parole chiave della stringa di connessione 'Password' o 'PWD'.</value>
24982498
</data>
24992499
<data name="SQL_InteractiveWithPassword" xml:space="preserve">
25002500
<value>Non è possibile usare 'Authentication=Active Directory Interactive' con le parole chiave della stringa di connessione 'Password' o 'PWD'.</value>
@@ -4617,4 +4617,4 @@
46174617
<data name="SQL_ParameterDirectionInvalidForOptimizedBinding" xml:space="preserve">
46184618
<value>Il parametro '{0}' non può includere Output o InputOutput come valore di Direction quando nel comando padre è abilitato EnableOptimizedParameterBinding.</value>
46194619
</data>
4620-
</root>
4620+
</root>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ja.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,8 +2493,8 @@
24932493
<data name="SQL_AuthenticationAndIntegratedSecurity" xml:space="preserve">
24942494
<value>'Authentication' と 'Integrated Security' を一緒に使用することはできません。</value>
24952495
</data>
2496-
<data name="SQL_IntegratedWithUserIDAndPassword" xml:space="preserve">
2497-
<value>'Authentication=Active Directory Integrated' と接続文字列キーワード 'User ID'、'UID'、'Password'、'PWD' を一緒に使用することはできません。</value>
2496+
<data name="SQL_IntegratedWithPassword" xml:space="preserve">
2497+
<value>'Authentication=Active Directory Integrated' と接続文字列キーワード 'Password'、'PWD' を一緒に使用することはできません。</value>
24982498
</data>
24992499
<data name="SQL_InteractiveWithPassword" xml:space="preserve">
25002500
<value>'Authentication=Active Directory Interactive' と接続文字列キーワード 'Password'、'PWD' を一緒に使用することはできません。</value>
@@ -4617,4 +4617,4 @@
46174617
<data name="SQL_ParameterDirectionInvalidForOptimizedBinding" xml:space="preserve">
46184618
<value>親コマンドで EnableOptimizedParameterBinding が有効になっている場合、パラメーター '{0}' に Direction 出力または InputOutput は指定できません。</value>
46194619
</data>
4620-
</root>
4620+
</root>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ko.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,8 +2493,8 @@
24932493
<data name="SQL_AuthenticationAndIntegratedSecurity" xml:space="preserve">
24942494
<value>'Authentication'을 'Integrated Security'와 함께 사용할 수 없습니다.</value>
24952495
</data>
2496-
<data name="SQL_IntegratedWithUserIDAndPassword" xml:space="preserve">
2497-
<value>'Authentication=Active Directory Integrated'를 'User ID', 'UID', 'Password' 또는 'PWD' 연결 문자열 키워드와 함께 사용할 수 없습니다.</value>
2496+
<data name="SQL_IntegratedWithPassword" xml:space="preserve">
2497+
<value>'Authentication=Active Directory Integrated'를 'Password' 또는 'PWD' 연결 문자열 키워드와 함께 사용할 수 없습니다.</value>
24982498
</data>
24992499
<data name="SQL_InteractiveWithPassword" xml:space="preserve">
25002500
<value>'Authentication=Active Directory Interactive'를 'Password' 또는 'PWD' 연결 문자열 키워드와 함께 사용할 수 없습니다.</value>
@@ -4617,4 +4617,4 @@
46174617
<data name="SQL_ParameterDirectionInvalidForOptimizedBinding" xml:space="preserve">
46184618
<value>부모 명령에서 EnableOptimizedParameterBinding을 사용하는 경우 매개 변수 '{0}'에는 Direction Output 또는 InputOutput을 사용할 수 없습니다.</value>
46194619
</data>
4620-
</root>
4620+
</root>

0 commit comments

Comments
 (0)