diff options
-rw-r--r-- | src/WixToolset.Data/WindowsInstaller/Rows/WixMediaRow.cs | 60 | ||||
-rw-r--r-- | src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs | 15 |
2 files changed, 0 insertions, 75 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/WixMediaRow.cs b/src/WixToolset.Data/WindowsInstaller/Rows/WixMediaRow.cs deleted file mode 100644 index dfe40c35..00000000 --- a/src/WixToolset.Data/WindowsInstaller/Rows/WixMediaRow.cs +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
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.Data.WindowsInstaller.Rows | ||
4 | { | ||
5 | /// <summary> | ||
6 | /// Specialization of a row for the WixMedia table. | ||
7 | /// </summary> | ||
8 | public sealed class WixMediaRow : Row | ||
9 | { | ||
10 | /// <summary> | ||
11 | /// Creates a WixMedia row that does not belong to a table. | ||
12 | /// </summary> | ||
13 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> | ||
14 | /// <param name="tableDef">TableDefinition this Media row belongs to and should get its column definitions from.</param> | ||
15 | public WixMediaRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDef) : | ||
16 | base(sourceLineNumbers, tableDef) | ||
17 | { | ||
18 | } | ||
19 | |||
20 | /// <summary> | ||
21 | /// Creates a WixMedia row that belongs to a table. | ||
22 | /// </summary> | ||
23 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> | ||
24 | /// <param name="table">Table this Media row belongs to and should get its column definitions from.</param> | ||
25 | public WixMediaRow(SourceLineNumber sourceLineNumbers, Table table) : | ||
26 | base(sourceLineNumbers, table) | ||
27 | { | ||
28 | } | ||
29 | |||
30 | /// <summary> | ||
31 | /// Gets or sets the disk id for this media. | ||
32 | /// </summary> | ||
33 | /// <value>Disk id for the media.</value> | ||
34 | public int DiskId | ||
35 | { | ||
36 | get { return (int)this.Fields[0].Data; } | ||
37 | set { this.Fields[0].Data = value; } | ||
38 | } | ||
39 | |||
40 | /// <summary> | ||
41 | /// Gets or sets the compression level for this media row. | ||
42 | /// </summary> | ||
43 | /// <value>Compression level.</value> | ||
44 | public CompressionLevel? CompressionLevel | ||
45 | { | ||
46 | get { return (CompressionLevel?)this.Fields[1].AsNullableInteger(); } | ||
47 | set { this.Fields[1].Data = value; } | ||
48 | } | ||
49 | |||
50 | /// <summary> | ||
51 | /// Gets or sets the layout location for this media row. | ||
52 | /// </summary> | ||
53 | /// <value>Layout location to the root of the media.</value> | ||
54 | public string Layout | ||
55 | { | ||
56 | get { return (string)this.Fields[2].Data; } | ||
57 | set { this.Fields[2].Data = value; } | ||
58 | } | ||
59 | } | ||
60 | } | ||
diff --git a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs index 3a1a8916..ceeaf2fa 100644 --- a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs +++ b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs | |||
@@ -1925,20 +1925,6 @@ namespace WixToolset.Data.WindowsInstaller | |||
1925 | tupleIdIsPrimaryKey: true | 1925 | tupleIdIsPrimaryKey: true |
1926 | ); | 1926 | ); |
1927 | 1927 | ||
1928 | public static readonly TableDefinition WixMedia = new TableDefinition( | ||
1929 | "WixMedia", | ||
1930 | null, | ||
1931 | new[] | ||
1932 | { | ||
1933 | new ColumnDefinition("DiskId_", ColumnType.Number, 2, primaryKey: true, nullable: false, ColumnCategory.Unknown), | ||
1934 | new ColumnDefinition("CompressionLevel", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Unknown, minValue: 0, maxValue: 4), | ||
1935 | new ColumnDefinition("Layout", ColumnType.String, 0, primaryKey: false, nullable: true, ColumnCategory.Unknown), | ||
1936 | }, | ||
1937 | unreal: true, | ||
1938 | strongRowType: typeof(WixMediaRow), | ||
1939 | tupleIdIsPrimaryKey: false | ||
1940 | ); | ||
1941 | |||
1942 | public static readonly TableDefinition WixMediaTemplate = new TableDefinition( | 1928 | public static readonly TableDefinition WixMediaTemplate = new TableDefinition( |
1943 | "WixMediaTemplate", | 1929 | "WixMediaTemplate", |
1944 | TupleDefinitions.WixMediaTemplate, | 1930 | TupleDefinitions.WixMediaTemplate, |
@@ -2353,7 +2339,6 @@ namespace WixToolset.Data.WindowsInstaller | |||
2353 | WixFragment, | 2339 | WixFragment, |
2354 | WixInstanceComponent, | 2340 | WixInstanceComponent, |
2355 | WixInstanceTransforms, | 2341 | WixInstanceTransforms, |
2356 | WixMedia, | ||
2357 | WixMediaTemplate, | 2342 | WixMediaTemplate, |
2358 | WixMerge, | 2343 | WixMerge, |
2359 | WixOrdering, | 2344 | WixOrdering, |