diff options
Diffstat (limited to 'src/wixext/MsmqTableDefinitions.cs')
| -rw-r--r-- | src/wixext/MsmqTableDefinitions.cs | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/wixext/MsmqTableDefinitions.cs b/src/wixext/MsmqTableDefinitions.cs new file mode 100644 index 00000000..00149ffa --- /dev/null +++ b/src/wixext/MsmqTableDefinitions.cs | |||
| @@ -0,0 +1,64 @@ | |||
| 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.Msmq | ||
| 4 | { | ||
| 5 | using WixToolset.Data.WindowsInstaller; | ||
| 6 | |||
| 7 | public static class MsmqTableDefinitions | ||
| 8 | { | ||
| 9 | public static readonly TableDefinition MessageQueue = new TableDefinition( | ||
| 10 | "MessageQueue", | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new ColumnDefinition("MessageQueue", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, modularizeType: ColumnModularizeType.Column), | ||
| 14 | new ColumnDefinition("Component_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, modularizeType: ColumnModularizeType.Column), | ||
| 15 | new ColumnDefinition("BasePriority", ColumnType.Number, 4, primaryKey: false, nullable: true, ColumnCategory.Unknown), | ||
| 16 | new ColumnDefinition("JournalQuota", ColumnType.Number, 4, primaryKey: false, nullable: true, ColumnCategory.Unknown), | ||
| 17 | new ColumnDefinition("Label", ColumnType.Localized, 255, primaryKey: false, nullable: false, ColumnCategory.Formatted, modularizeType: ColumnModularizeType.Property), | ||
| 18 | new ColumnDefinition("MulticastAddress", ColumnType.String, 255, primaryKey: false, nullable: true, ColumnCategory.Formatted, modularizeType: ColumnModularizeType.Property), | ||
| 19 | new ColumnDefinition("PathName", ColumnType.String, 255, primaryKey: false, nullable: false, ColumnCategory.Formatted, modularizeType: ColumnModularizeType.Property), | ||
| 20 | new ColumnDefinition("PrivLevel", ColumnType.Number, 4, primaryKey: false, nullable: true, ColumnCategory.Unknown), | ||
| 21 | new ColumnDefinition("Quota", ColumnType.Number, 4, primaryKey: false, nullable: true, ColumnCategory.Unknown), | ||
| 22 | new ColumnDefinition("ServiceTypeGuid", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Formatted, modularizeType: ColumnModularizeType.Property), | ||
| 23 | new ColumnDefinition("Attributes", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown), | ||
| 24 | }, | ||
| 25 | tupleDefinitionName: MsmqTupleDefinitions.MessageQueue.Name, | ||
| 26 | tupleIdIsPrimaryKey: true | ||
| 27 | ); | ||
| 28 | |||
| 29 | public static readonly TableDefinition MessageQueueUserPermission = new TableDefinition( | ||
| 30 | "MessageQueueUserPermission", | ||
| 31 | new[] | ||
| 32 | { | ||
| 33 | new ColumnDefinition("MessageQueueUserPermission", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, modularizeType: ColumnModularizeType.Column), | ||
| 34 | new ColumnDefinition("Component_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, modularizeType: ColumnModularizeType.Column), | ||
| 35 | new ColumnDefinition("MessageQueue_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "MessageQueue", keyColumn: 1, modularizeType: ColumnModularizeType.Column), | ||
| 36 | new ColumnDefinition("User_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, modularizeType: ColumnModularizeType.Column), | ||
| 37 | new ColumnDefinition("Permissions", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown), | ||
| 38 | }, | ||
| 39 | tupleDefinitionName: MsmqTupleDefinitions.MessageQueueUserPermission.Name, | ||
| 40 | tupleIdIsPrimaryKey: true | ||
| 41 | ); | ||
| 42 | |||
| 43 | public static readonly TableDefinition MessageQueueGroupPermission = new TableDefinition( | ||
| 44 | "MessageQueueGroupPermission", | ||
| 45 | new[] | ||
| 46 | { | ||
| 47 | new ColumnDefinition("MessageQueueGroupPermission", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, modularizeType: ColumnModularizeType.Column), | ||
| 48 | new ColumnDefinition("Component_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, modularizeType: ColumnModularizeType.Column), | ||
| 49 | new ColumnDefinition("MessageQueue_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "MessageQueue", keyColumn: 1, modularizeType: ColumnModularizeType.Column), | ||
| 50 | new ColumnDefinition("Group_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, modularizeType: ColumnModularizeType.Column), | ||
| 51 | new ColumnDefinition("Permissions", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown), | ||
| 52 | }, | ||
| 53 | tupleDefinitionName: MsmqTupleDefinitions.MessageQueueGroupPermission.Name, | ||
| 54 | tupleIdIsPrimaryKey: true | ||
| 55 | ); | ||
| 56 | |||
| 57 | public static readonly TableDefinition[] All = new[] | ||
| 58 | { | ||
| 59 | MessageQueue, | ||
| 60 | MessageQueueUserPermission, | ||
| 61 | MessageQueueGroupPermission, | ||
| 62 | }; | ||
| 63 | } | ||
| 64 | } | ||
