diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-10 10:17:26 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-10 10:21:39 +1000 |
| commit | f92c72546326fb9b893bb7760691ee67ec7ab832 (patch) | |
| tree | 405b3305fc4c08d25003cd601b3284bede89fa1a /src/wixext/HttpTableDefinitions.cs | |
| parent | cff40371860cded7924b0010a26c9e8dc779cb0f (diff) | |
| download | wix-f92c72546326fb9b893bb7760691ee67ec7ab832.tar.gz wix-f92c72546326fb9b893bb7760691ee67ec7ab832.tar.bz2 wix-f92c72546326fb9b893bb7760691ee67ec7ab832.zip | |
Modernize HttpCompiler and tuples.
Diffstat (limited to 'src/wixext/HttpTableDefinitions.cs')
| -rw-r--r-- | src/wixext/HttpTableDefinitions.cs | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/wixext/HttpTableDefinitions.cs b/src/wixext/HttpTableDefinitions.cs new file mode 100644 index 00000000..57422475 --- /dev/null +++ b/src/wixext/HttpTableDefinitions.cs | |||
| @@ -0,0 +1,42 @@ | |||
| 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.Http | ||
| 4 | { | ||
| 5 | using WixToolset.Data.WindowsInstaller; | ||
| 6 | |||
| 7 | public static class HttpTableDefinitions | ||
| 8 | { | ||
| 9 | public static readonly TableDefinition WixHttpUrlReservation = new TableDefinition( | ||
| 10 | "WixHttpUrlReservation", | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new ColumnDefinition("WixHttpUrlReservation", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "The non-localized primary key for the table.", modularizeType: ColumnModularizeType.Column), | ||
| 14 | new ColumnDefinition("HandleExisting", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown, minValue: 0, maxValue: 2, description: "The behavior when trying to install a URL reservation and it already exists."), | ||
| 15 | new ColumnDefinition("Sddl", ColumnType.String, 0, primaryKey: false, nullable: true, ColumnCategory.Formatted, description: "Security descriptor for the URL reservation.", modularizeType: ColumnModularizeType.Property), | ||
| 16 | new ColumnDefinition("Url", ColumnType.String, 0, primaryKey: false, nullable: false, ColumnCategory.Formatted, description: "URL to be reserved.", modularizeType: ColumnModularizeType.Property), | ||
| 17 | new ColumnDefinition("Component_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, description: "Foreign key into the Component table referencing the component that controls the URL reservation.", modularizeType: ColumnModularizeType.Column), | ||
| 18 | }, | ||
| 19 | tupleDefinitionName: HttpTupleDefinitions.WixHttpUrlReservation.Name, | ||
| 20 | tupleIdIsPrimaryKey: true | ||
| 21 | ); | ||
| 22 | |||
| 23 | public static readonly TableDefinition WixHttpUrlAce = new TableDefinition( | ||
| 24 | "WixHttpUrlAce", | ||
| 25 | new[] | ||
| 26 | { | ||
| 27 | new ColumnDefinition("WixHttpUrlAce", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "The non-localized primary key for the table.", modularizeType: ColumnModularizeType.Column), | ||
| 28 | new ColumnDefinition("WixHttpUrlReservation_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "WixHttpUrlReservation", keyColumn: 1, description: "Foreign key into the WixHttpUrlReservation table.", modularizeType: ColumnModularizeType.Column), | ||
| 29 | new ColumnDefinition("SecurityPrincipal", ColumnType.String, 0, primaryKey: false, nullable: false, ColumnCategory.Formatted, description: "The security principal for this ACE.", modularizeType: ColumnModularizeType.Property), | ||
| 30 | new ColumnDefinition("Rights", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown, minValue: 0, maxValue: 1073741824, description: "The rights for this ACE."), | ||
| 31 | }, | ||
| 32 | tupleDefinitionName: HttpTupleDefinitions.WixHttpUrlAce.Name, | ||
| 33 | tupleIdIsPrimaryKey: true | ||
| 34 | ); | ||
| 35 | |||
| 36 | public static readonly TableDefinition[] All = new[] | ||
| 37 | { | ||
| 38 | WixHttpUrlReservation, | ||
| 39 | WixHttpUrlAce, | ||
| 40 | }; | ||
| 41 | } | ||
| 42 | } | ||
