aboutsummaryrefslogtreecommitdiff
path: root/src/test/Example.Extension/ExampleTableDefinitions.cs
blob: a2b81698febb1a125e01dbc2b0af6e2d7498943e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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.

namespace Example.Extension
{
    using WixToolset.Data.WindowsInstaller;

    public static class ExampleTableDefinitions
    {
        public static readonly TableDefinition ExampleTable = new TableDefinition(
            "Wix4Example",
            ExampleSymbolDefinitions.Example,
            new[]
            {
                new ColumnDefinition("Example", ColumnType.String, 72, true, false, ColumnCategory.Identifier),
                new ColumnDefinition("Value", ColumnType.String, 0, false, false, ColumnCategory.Formatted),
            },
            strongRowType: typeof(ExampleRow),
            symbolIdIsPrimaryKey: true
        );

        public static readonly TableDefinition NotInAll = new TableDefinition(
            "TableDefinitionNotExposedByExtension",
            null,
            new[]
            {
                new ColumnDefinition("Example", ColumnType.String, 72, true, false, ColumnCategory.Identifier),
                new ColumnDefinition("Value", ColumnType.String, 0, false, false, ColumnCategory.Formatted),
            },
            symbolIdIsPrimaryKey: true
        );

        public static readonly TableDefinition[] All = new[] { ExampleTable };
    }
}