| 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 Example.Extension |
| 4 | { |
| 5 | using WixToolset.Data.WindowsInstaller; |
| 6 | |
| 7 | public static class ExampleTableDefinitions |
| 8 | { |
| 9 | public static readonly TableDefinition ExampleTable = new TableDefinition( |
| 10 | "Wix4Example", |
| 11 | ExampleSymbolDefinitions.Example, |
| 12 | new[] |
| 13 | { |
| 14 | new ColumnDefinition("Example", ColumnType.String, 72, true, false, ColumnCategory.Identifier, modularizeType: ColumnModularizeType.Column), |
| 15 | new ColumnDefinition("Component_", ColumnType.String, 72, false, false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, modularizeType: ColumnModularizeType.Column), |
| 16 | new ColumnDefinition("Value", ColumnType.String, 0, false, false, ColumnCategory.Formatted), |
| 17 | }, |
| 18 | strongRowType: typeof(ExampleRow), |
| 19 | symbolIdIsPrimaryKey: true |
| 20 | ); |
| 21 | |
| 22 | public static readonly TableDefinition NotInAll = new TableDefinition( |
| 23 | "TableDefinitionNotExposedByExtension", |
| 24 | null, |
| 25 | new[] |
| 26 | { |
| 27 | new ColumnDefinition("Example", ColumnType.String, 72, true, false, ColumnCategory.Identifier), |
| 28 | new ColumnDefinition("Value", ColumnType.String, 0, false, false, ColumnCategory.Formatted), |
| 29 | }, |
| 30 | symbolIdIsPrimaryKey: true |
| 31 | ); |
| 32 | |
| 33 | public static readonly TableDefinition[] All = new[] { ExampleTable }; |
| 34 | } |
| 35 | } |