diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:50:56 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:50:56 -0700 |
| commit | a8a1e0d6f99c2b902a8f81d3d7f3503c506e8171 (patch) | |
| tree | f003003bf293bb5f2a2db368acfd98639d315d44 /src/ext/VisualStudio/wixext/VSTableDefinitions.cs | |
| parent | e137eef6a20999a37a137414b8c8b9a8f5af3cd4 (diff) | |
| download | wix-a8a1e0d6f99c2b902a8f81d3d7f3503c506e8171.tar.gz wix-a8a1e0d6f99c2b902a8f81d3d7f3503c506e8171.tar.bz2 wix-a8a1e0d6f99c2b902a8f81d3d7f3503c506e8171.zip | |
Move VisualStudio.wixext into ext
Diffstat (limited to 'src/ext/VisualStudio/wixext/VSTableDefinitions.cs')
| -rw-r--r-- | src/ext/VisualStudio/wixext/VSTableDefinitions.cs | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/ext/VisualStudio/wixext/VSTableDefinitions.cs b/src/ext/VisualStudio/wixext/VSTableDefinitions.cs new file mode 100644 index 00000000..0c3ca907 --- /dev/null +++ b/src/ext/VisualStudio/wixext/VSTableDefinitions.cs | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.VisualStudio | ||
| 4 | { | ||
| 5 | using WixToolset.Data.WindowsInstaller; | ||
| 6 | |||
| 7 | public static class VSTableDefinitions | ||
| 8 | { | ||
| 9 | public static readonly TableDefinition HelpFile = new TableDefinition( | ||
| 10 | "HelpFile", | ||
| 11 | VSSymbolDefinitions.HelpFile, | ||
| 12 | new[] | ||
| 13 | { | ||
| 14 | new ColumnDefinition("HelpFileKey", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary Key for HelpFile Table (required).", modularizeType: ColumnModularizeType.Column), | ||
| 15 | new ColumnDefinition("HelpFileName", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Text, description: "Internal Microsoft Help ID for this HelpFile (required)."), | ||
| 16 | new ColumnDefinition("LangID", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Language, description: "Language ID for content file (optional)."), | ||
| 17 | new ColumnDefinition("File_HxS", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for HxS (Title) file (required).", modularizeType: ColumnModularizeType.Column), | ||
| 18 | new ColumnDefinition("File_HxI", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for HxI (Index) file (optional).", modularizeType: ColumnModularizeType.Column), | ||
| 19 | new ColumnDefinition("File_HxQ", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for HxQ (Query) file (optional).", modularizeType: ColumnModularizeType.Column), | ||
| 20 | new ColumnDefinition("File_HxR", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for HxR (Attributes) file (optional).", modularizeType: ColumnModularizeType.Column), | ||
| 21 | new ColumnDefinition("File_Samples", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for a file that is in the 'root' of the samples directory for this HelpFile (optional).", modularizeType: ColumnModularizeType.Column), | ||
| 22 | }, | ||
| 23 | symbolIdIsPrimaryKey: true | ||
| 24 | ); | ||
| 25 | |||
| 26 | public static readonly TableDefinition HelpFileToNamespace = new TableDefinition( | ||
| 27 | "HelpFileToNamespace", | ||
| 28 | VSSymbolDefinitions.HelpFileToNamespace, | ||
| 29 | new[] | ||
| 30 | { | ||
| 31 | new ColumnDefinition("HelpFile_", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "HelpFile", keyColumn: 1, description: "Foreign key into HelpFile table (required).", modularizeType: ColumnModularizeType.Column), | ||
| 32 | new ColumnDefinition("HelpNamespace_", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "HelpNamespace", keyColumn: 1, description: "Foreign key into HelpNamespace table (required)."), | ||
| 33 | }, | ||
| 34 | symbolIdIsPrimaryKey: false | ||
| 35 | ); | ||
| 36 | |||
| 37 | public static readonly TableDefinition HelpFilter = new TableDefinition( | ||
| 38 | "HelpFilter", | ||
| 39 | VSSymbolDefinitions.HelpFilter, | ||
| 40 | new[] | ||
| 41 | { | ||
| 42 | new ColumnDefinition("FilterKey", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary Key for HelpFilter (required).", modularizeType: ColumnModularizeType.Column), | ||
| 43 | new ColumnDefinition("Description", ColumnType.Localized, 0, primaryKey: false, nullable: false, ColumnCategory.Text, description: "Friendly name for Filter (required)."), | ||
| 44 | new ColumnDefinition("QueryString", ColumnType.String, 0, primaryKey: false, nullable: true, ColumnCategory.Text, description: "Query String for Help Filter (optional)."), | ||
| 45 | }, | ||
| 46 | symbolIdIsPrimaryKey: true | ||
| 47 | ); | ||
| 48 | |||
| 49 | public static readonly TableDefinition HelpFilterToNamespace = new TableDefinition( | ||
| 50 | "HelpFilterToNamespace", | ||
| 51 | VSSymbolDefinitions.HelpFilterToNamespace, | ||
| 52 | new[] | ||
| 53 | { | ||
| 54 | new ColumnDefinition("HelpFilter_", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "HelpFilter", keyColumn: 1, description: "Foreign key into HelpFilter table (required).", modularizeType: ColumnModularizeType.Column), | ||
| 55 | new ColumnDefinition("HelpNamespace_", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "HelpNamespace", keyColumn: 1, description: "Foreign key into HelpNamespace table (required)."), | ||
| 56 | }, | ||
| 57 | symbolIdIsPrimaryKey: false | ||
| 58 | ); | ||
| 59 | |||
| 60 | public static readonly TableDefinition HelpNamespace = new TableDefinition( | ||
| 61 | "HelpNamespace", | ||
| 62 | VSSymbolDefinitions.HelpNamespace, | ||
| 63 | new[] | ||
| 64 | { | ||
| 65 | new ColumnDefinition("NamespaceKey", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "Primary Key for HelpNamespace (required)."), | ||
| 66 | new ColumnDefinition("NamespaceName", ColumnType.String, 0, primaryKey: false, nullable: false, ColumnCategory.Text, description: "Internal Microsoft Help ID for this Namespace (required)."), | ||
| 67 | new ColumnDefinition("File_Collection", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for HxC (Collection) file (required).", modularizeType: ColumnModularizeType.Column), | ||
| 68 | new ColumnDefinition("Description", ColumnType.Localized, 0, primaryKey: false, nullable: true, ColumnCategory.Text, description: "Friendly name for Namespace (optional)."), | ||
| 69 | }, | ||
| 70 | symbolIdIsPrimaryKey: true | ||
| 71 | ); | ||
| 72 | |||
| 73 | public static readonly TableDefinition HelpPlugin = new TableDefinition( | ||
| 74 | "HelpPlugin", | ||
| 75 | VSSymbolDefinitions.HelpPlugin, | ||
| 76 | new[] | ||
| 77 | { | ||
| 78 | new ColumnDefinition("HelpNamespace_", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "HelpNamespace", keyColumn: 1, description: "Foreign key into HelpNamespace table for the child namespace that will be plugged into the parent namespace (required)."), | ||
| 79 | new ColumnDefinition("HelpNamespace_Parent", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "HelpNamespace", keyColumn: 1, description: "Foreign key into HelpNamespace table for the parent namespace into which the child will be inserted (required)."), | ||
| 80 | new ColumnDefinition("File_HxT", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for HxT file of child namespace (optional).", modularizeType: ColumnModularizeType.Column), | ||
| 81 | new ColumnDefinition("File_HxA", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for HxA (Attributes) file of child namespace (optional).", modularizeType: ColumnModularizeType.Column), | ||
| 82 | new ColumnDefinition("File_ParentHxT", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Identifier, keyTable: "File", keyColumn: 1, description: "Key for HxT file of parent namespace that now includes the new child namespace (optional).", modularizeType: ColumnModularizeType.Column), | ||
| 83 | }, | ||
| 84 | symbolIdIsPrimaryKey: false | ||
| 85 | ); | ||
| 86 | |||
| 87 | public static readonly TableDefinition[] All = new[] | ||
| 88 | { | ||
| 89 | HelpFile, | ||
| 90 | HelpFileToNamespace, | ||
| 91 | HelpFilter, | ||
| 92 | HelpFilterToNamespace, | ||
| 93 | HelpNamespace, | ||
| 94 | HelpPlugin, | ||
| 95 | }; | ||
| 96 | } | ||
| 97 | } | ||
