mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-01 01:25:43 -05:00
Add getObjects from model request (#1634)
Co-authored-by: Alex Ma <alma1@microsoft.com>
This commit is contained in:
@@ -9429,6 +9429,14 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetUserDefinedObjectsFromModelFailed
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.GetUserDefinedObjectsFromModelFailed);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionServiceListDbErrorNotConnected(string uri)
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionServiceListDbErrorNotConnected, uri);
|
||||
@@ -9814,6 +9822,16 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.ComputedColumnNeedToBePersistedInForeignKeyRuleDescription, columnName, foreignKeyName);
|
||||
}
|
||||
|
||||
public static string SqlProjectModelNotFound(string projectUri)
|
||||
{
|
||||
return Keys.GetString(Keys.SqlProjectModelNotFound, projectUri);
|
||||
}
|
||||
|
||||
public static string UnsupportedModelType(string type)
|
||||
{
|
||||
return Keys.GetString(Keys.UnsupportedModelType, type);
|
||||
}
|
||||
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Keys
|
||||
{
|
||||
@@ -13578,6 +13596,15 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string ComputedColumnNeedToBePersistedInForeignKeyRuleDescription = "ComputedColumnNeedToBePersistedInForeignKeyRuleDescription";
|
||||
|
||||
|
||||
public const string SqlProjectModelNotFound = "SqlProjectModelNotFound";
|
||||
|
||||
|
||||
public const string UnsupportedModelType = "UnsupportedModelType";
|
||||
|
||||
|
||||
public const string GetUserDefinedObjectsFromModelFailed = "GetUserDefinedObjectsFromModelFailed";
|
||||
|
||||
|
||||
private Keys()
|
||||
{ }
|
||||
|
||||
|
||||
@@ -5206,4 +5206,18 @@ The Query Processor estimates that implementing the following index could improv
|
||||
<comment>.
|
||||
Parameters: 0 - columnName (string), 1 - foreignKeyName (string) </comment>
|
||||
</data>
|
||||
<data name="SqlProjectModelNotFound" xml:space="preserve">
|
||||
<value>Could not find SQL model from project: {0}.</value>
|
||||
<comment>.
|
||||
Parameters: 0 - projectUri (string) </comment>
|
||||
</data>
|
||||
<data name="UnsupportedModelType" xml:space="preserve">
|
||||
<value>Unsupported model type: {0}.</value>
|
||||
<comment>.
|
||||
Parameters: 0 - type (string) </comment>
|
||||
</data>
|
||||
<data name="GetUserDefinedObjectsFromModelFailed" xml:space="preserve">
|
||||
<value>Failed to get user defined objects from model.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -2381,4 +2381,11 @@ ClusteredIndexCannotHaveFilterPredicateRuleDescription = Filter predicate is not
|
||||
ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription(string columnName, string indexName, int rowNumber) = Column with name '{0}' has already been included to the index '{1}'. Row number: {2}.
|
||||
ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription(string columnName, string indexName, int rowNumber) = Included column with name '{0}' has already been part of the index '{1}' and it cannot be included. Row number: {2}.
|
||||
ComputedColumnNeedToBePersistedAndNotNullInPrimaryKeyRuleDescription(string columnName) = The computed column with name '{0}' has to be persisted and not nullable to be part of a primary key.
|
||||
ComputedColumnNeedToBePersistedInForeignKeyRuleDescription(string columnName, string foreignKeyName) = The computed column with name '{0}' has to be persisted to be part of the foreign key '{1}'.
|
||||
ComputedColumnNeedToBePersistedInForeignKeyRuleDescription(string columnName, string foreignKeyName) = The computed column with name '{0}' has to be persisted to be part of the foreign key '{1}'.
|
||||
|
||||
############################################################################
|
||||
# TSql Model
|
||||
|
||||
SqlProjectModelNotFound(string projectUri) = Could not find SQL model from project: {0}.
|
||||
UnsupportedModelType(string type) = Unsupported model type: {0}.
|
||||
GetUserDefinedObjectsFromModelFailed = Failed to get user defined objects from model.
|
||||
@@ -6331,6 +6331,23 @@ The Query Processor estimates that implementing the following index could improv
|
||||
<target state="new">Dropped Ledger Views</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="SqlProjectModelNotFound">
|
||||
<source>Could not find SQL model from project: {0}.</source>
|
||||
<target state="new">Could not find SQL model from project: {0}.</target>
|
||||
<note>.
|
||||
Parameters: 0 - projectUri (string) </note>
|
||||
</trans-unit>
|
||||
<trans-unit id="UnsupportedModelType">
|
||||
<source>Unsupported model type: {0}.</source>
|
||||
<target state="new">Unsupported model type: {0}.</target>
|
||||
<note>.
|
||||
Parameters: 0 - type (string) </note>
|
||||
</trans-unit>
|
||||
<trans-unit id="GetUserDefinedObjectsFromModelFailed">
|
||||
<source>Failed to get user defined objects from model.</source>
|
||||
<target state="new">Failed to get user defined objects from model.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="ComputedColumnNeedToBePersistedAndNotNullInPrimaryKeyRuleDescription">
|
||||
<source>The computed column with name '{0}' has to be persisted and not nullable to be part of a primary key.</source>
|
||||
<target state="new">The computed column with name '{0}' has to be persisted and not nullable to be part of a primary key.</target>
|
||||
|
||||
Reference in New Issue
Block a user