Add error for sql bindings when .net 5 (#1259)

* add error for sql bindings when .net 5

* add test

* cleanup linq stuff and move out common code
This commit is contained in:
Kim Santiago
2021-10-07 16:13:53 -07:00
committed by GitHub
parent f2da10f23a
commit 0f0df25119
10 changed files with 121 additions and 19 deletions

View File

@@ -3053,6 +3053,14 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string SqlBindingsNet5NotSupported
{
get
{
return Keys.GetString(Keys.SqlBindingsNet5NotSupported);
}
}
public static string ConnectionServiceListDbErrorNotConnected(string uri)
{
return Keys.GetString(Keys.ConnectionServiceListDbErrorNotConnected, uri);
@@ -4571,6 +4579,9 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string MoreThanOneAzureFunctionWithName = "MoreThanOneAzureFunctionWithName";
public const string SqlBindingsNet5NotSupported = "SqlBindingsNet5NotSupported";
private Keys()
{ }

View File

@@ -1864,4 +1864,8 @@
<comment>.
Parameters: 0 - functionName (string), 1 - fileName (string) </comment>
</data>
<data name="SqlBindingsNet5NotSupported" xml:space="preserve">
<value>Adding SQL bindings is not supported for .NET 5</value>
<comment></comment>
</data>
</root>

View File

@@ -853,4 +853,5 @@ SqlAssessmentUnsuppoertedEdition(int editionCode) = Unsupported engine edition {
############################################################################
# Azure Functions
CouldntFindAzureFunction(string functionName, string fileName) = Couldn't find Azure function with FunctionName '{0}' in {1}
MoreThanOneAzureFunctionWithName(string functionName, string fileName) = More than one Azure function found with the FunctionName '{0}' in {1}
MoreThanOneAzureFunctionWithName(string functionName, string fileName) = More than one Azure function found with the FunctionName '{0}' in {1}
SqlBindingsNet5NotSupported = Adding SQL bindings is not supported for .NET 5

View File

@@ -2173,6 +2173,11 @@
<note>.
Parameters: 0 - functionName (string), 1 - fileName (string) </note>
</trans-unit>
<trans-unit id="SqlBindingsNet5NotSupported">
<source>Adding SQL bindings is not supported for .NET 5</source>
<target state="new">Adding SQL bindings is not supported for .NET 5</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>