mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-29 01:25:41 -05:00
add foreign keys and constraints (#1316)
* add foreign keys and constraints * add property name
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner
|
||||
public const string Schema = "schema";
|
||||
public const string Description = "description";
|
||||
public const string Columns = "columns";
|
||||
public const string ForeignKeys = "foreignKeys";
|
||||
}
|
||||
|
||||
public static class TableColumnPropertyNames
|
||||
@@ -27,4 +28,28 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner
|
||||
public const string IdentityIncrement = "identityIncrement";
|
||||
public const string IdentitySeed = "identitySeed";
|
||||
}
|
||||
|
||||
public static class ForeignKeyPropertyNames
|
||||
{
|
||||
public const string Name = "name";
|
||||
public const string Enabled = "enabled";
|
||||
public const string OnDeleteAction = "onDeleteAction";
|
||||
public const string OnUpdateAction = "onUpdateAction";
|
||||
public const string ColumnMapping = "columnMapping";
|
||||
public const string PrimaryKeyTable = "primaryKeyTable";
|
||||
public const string IsNotForReplication = "isNotForReplication";
|
||||
}
|
||||
|
||||
public static class CheckConstraintPropertyNames
|
||||
{
|
||||
public const string Name = "name";
|
||||
public const string Enabled = "enabled";
|
||||
public const string Expression = "expression";
|
||||
}
|
||||
|
||||
public static class ForeignKeyColumnMappingPropertyNames
|
||||
{
|
||||
public const string PrimaryKeyColumn = "primaryKeyColumn";
|
||||
public const string ForeignKeyColumn = "foreignKeyColumn";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user