add foreign keys and constraints (#1316)

* add foreign keys and constraints

* add property name
This commit is contained in:
Alan Ren
2021-11-18 15:01:10 -08:00
committed by GitHub
parent c03557aae7
commit b131d1738d
13 changed files with 353 additions and 94 deletions

View File

@@ -8509,6 +8509,78 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string TableDesignerIsEnabledPropertyTitle
{
get
{
return Keys.GetString(Keys.TableDesignerIsEnabledPropertyTitle);
}
}
public static string ForeignKeyIsEnabledDescription
{
get
{
return Keys.GetString(Keys.ForeignKeyIsEnabledDescription);
}
}
public static string ForeignKeyIsNotForReplicationTitle
{
get
{
return Keys.GetString(Keys.ForeignKeyIsNotForReplicationTitle);
}
}
public static string ForeignKeyIsNotForReplicationDescription
{
get
{
return Keys.GetString(Keys.ForeignKeyIsNotForReplicationDescription);
}
}
public static string SqlForeignKeyAction_NoAction
{
get
{
return Keys.GetString(Keys.SqlForeignKeyAction_NoAction);
}
}
public static string SqlForeignKeyAction_Cascade
{
get
{
return Keys.GetString(Keys.SqlForeignKeyAction_Cascade);
}
}
public static string SqlForeignKeyAction_SetNull
{
get
{
return Keys.GetString(Keys.SqlForeignKeyAction_SetNull);
}
}
public static string SqlForeignKeyAction_SetDefault
{
get
{
return Keys.GetString(Keys.SqlForeignKeyAction_SetDefault);
}
}
public static string CheckConstraintIsEnabledDescription
{
get
{
return Keys.GetString(Keys.CheckConstraintIsEnabledDescription);
}
}
public static string ConnectionServiceListDbErrorNotConnected(string uri)
{
return Keys.GetString(Keys.ConnectionServiceListDbErrorNotConnected, uri);
@@ -8794,6 +8866,11 @@ namespace Microsoft.SqlTools.ServiceLayer
return Keys.GetString(Keys.InvalidTableEditPathException, path, editType);
}
public static string UnKnownSqlForeignKeyAction(string name)
{
return Keys.GetString(Keys.UnKnownSqlForeignKeyAction, name);
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Keys
{
@@ -12153,6 +12230,36 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string TableColumnIdentitySeedPropertyDescription = "TableColumnIdentitySeedPropertyDescription";
public const string TableDesignerIsEnabledPropertyTitle = "TableDesignerIsEnabledPropertyTitle";
public const string ForeignKeyIsEnabledDescription = "ForeignKeyIsEnabledDescription";
public const string ForeignKeyIsNotForReplicationTitle = "ForeignKeyIsNotForReplicationTitle";
public const string ForeignKeyIsNotForReplicationDescription = "ForeignKeyIsNotForReplicationDescription";
public const string SqlForeignKeyAction_NoAction = "SqlForeignKeyAction_NoAction";
public const string SqlForeignKeyAction_Cascade = "SqlForeignKeyAction_Cascade";
public const string SqlForeignKeyAction_SetNull = "SqlForeignKeyAction_SetNull";
public const string SqlForeignKeyAction_SetDefault = "SqlForeignKeyAction_SetDefault";
public const string UnKnownSqlForeignKeyAction = "UnKnownSqlForeignKeyAction";
public const string CheckConstraintIsEnabledDescription = "CheckConstraintIsEnabledDescription";
private Keys()
{ }

View File

@@ -4643,4 +4643,45 @@
<value>Displays the initial row value for an identity column.</value>
<comment></comment>
</data>
<data name="TableDesignerIsEnabledPropertyTitle" xml:space="preserve">
<value>Is Enabled</value>
<comment></comment>
</data>
<data name="ForeignKeyIsEnabledDescription" xml:space="preserve">
<value>Specifies whether the foreign key is Enabled</value>
<comment></comment>
</data>
<data name="ForeignKeyIsNotForReplicationTitle" xml:space="preserve">
<value>Not For Replication</value>
<comment></comment>
</data>
<data name="ForeignKeyIsNotForReplicationDescription" xml:space="preserve">
<value>Enables or disables an IDENTITY constraint for data inserted by a replication process.</value>
<comment></comment>
</data>
<data name="SqlForeignKeyAction_NoAction" xml:space="preserve">
<value>No Action</value>
<comment></comment>
</data>
<data name="SqlForeignKeyAction_Cascade" xml:space="preserve">
<value>Cascade</value>
<comment></comment>
</data>
<data name="SqlForeignKeyAction_SetNull" xml:space="preserve">
<value>Set Null</value>
<comment></comment>
</data>
<data name="SqlForeignKeyAction_SetDefault" xml:space="preserve">
<value>Set Default</value>
<comment></comment>
</data>
<data name="UnKnownSqlForeignKeyAction" xml:space="preserve">
<value>&apos;{0}&apos; is not a supported SqlForeignKeyAction.</value>
<comment>.
Parameters: 0 - name (string) </comment>
</data>
<data name="CheckConstraintIsEnabledDescription" xml:space="preserve">
<value>Specifies whether the check constraint is Enabled</value>
<comment></comment>
</data>
</root>

View File

@@ -2231,3 +2231,13 @@ TableColumnIdentityIncrementPropertyTitle = Identity Increment
TableColumnIdentityIncrementPropertyDescription = Displays the value added to the maximum existing row identity value when generating the next identity value.
TableColumnIdentitySeedPropertyTitle = Identity Seed
TableColumnIdentitySeedPropertyDescription = Displays the initial row value for an identity column.
TableDesignerIsEnabledPropertyTitle = Is Enabled
ForeignKeyIsEnabledDescription = Specifies whether the foreign key is Enabled
ForeignKeyIsNotForReplicationTitle = Not For Replication
ForeignKeyIsNotForReplicationDescription = Enables or disables an IDENTITY constraint for data inserted by a replication process.
SqlForeignKeyAction_NoAction = No Action
SqlForeignKeyAction_Cascade = Cascade
SqlForeignKeyAction_SetNull = Set Null
SqlForeignKeyAction_SetDefault = Set Default
UnKnownSqlForeignKeyAction(string name) = '{0}' is not a supported SqlForeignKeyAction.
CheckConstraintIsEnabledDescription = Specifies whether the check constraint is Enabled

View File

@@ -5645,6 +5645,57 @@
<note>.
Parameters: 0 - actual (string), 1 - estimated (string), 2 - percent (decimal) </note>
</trans-unit>
<trans-unit id="TableDesignerIsEnabledPropertyTitle">
<source>Is Enabled</source>
<target state="new">Is Enabled</target>
<note></note>
</trans-unit>
<trans-unit id="ForeignKeyIsEnabledDescription">
<source>Specifies whether the foreign key is Enabled</source>
<target state="new">Specifies whether the foreign key is Enabled</target>
<note></note>
</trans-unit>
<trans-unit id="ForeignKeyIsNotForReplicationTitle">
<source>Not For Replication</source>
<target state="new">Not For Replication</target>
<note></note>
</trans-unit>
<trans-unit id="ForeignKeyIsNotForReplicationDescription">
<source>Enables or disables an IDENTITY constraint for data inserted by a replication process.</source>
<target state="new">Enables or disables an IDENTITY constraint for data inserted by a replication process.</target>
<note></note>
</trans-unit>
<trans-unit id="SqlForeignKeyAction_NoAction">
<source>No Action</source>
<target state="new">No Action</target>
<note></note>
</trans-unit>
<trans-unit id="SqlForeignKeyAction_Cascade">
<source>Cascade</source>
<target state="new">Cascade</target>
<note></note>
</trans-unit>
<trans-unit id="SqlForeignKeyAction_SetNull">
<source>Set Null</source>
<target state="new">Set Null</target>
<note></note>
</trans-unit>
<trans-unit id="SqlForeignKeyAction_SetDefault">
<source>Set Default</source>
<target state="new">Set Default</target>
<note></note>
</trans-unit>
<trans-unit id="UnKnownSqlForeignKeyAction">
<source>'{0}' is not a supported SqlForeignKeyAction.</source>
<target state="new">'{0}' is not a supported SqlForeignKeyAction.</target>
<note>.
Parameters: 0 - name (string) </note>
</trans-unit>
<trans-unit id="CheckConstraintIsEnabledDescription">
<source>Specifies whether the check constraint is Enabled</source>
<target state="new">Specifies whether the check constraint is Enabled</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>