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
|
// 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",
new[]
{
new ColumnDefinition("Example", ColumnType.String, 72, true, false, ColumnCategory.Identifier),
new ColumnDefinition("Value", ColumnType.String, 0, false, false, ColumnCategory.Formatted),
},
tupleDefinitionName: ExampleTupleDefinitions.Example.Name,
tupleIdIsPrimaryKey: true
);
public static readonly TableDefinition NotInAll = new TableDefinition(
"TableDefinitionNotExposedByExtension",
new[]
{
new ColumnDefinition("Example", ColumnType.String, 72, true, false, ColumnCategory.Identifier),
new ColumnDefinition("Value", ColumnType.String, 0, false, false, ColumnCategory.Formatted),
},
tupleIdIsPrimaryKey: true
);
public static readonly TableDefinition[] All = new[] { ExampleTable };
}
}
|