diff options
Diffstat (limited to 'src/wixext/Tuples/FileShareTuple.cs')
-rw-r--r-- | src/wixext/Tuples/FileShareTuple.cs | 44 |
1 files changed, 10 insertions, 34 deletions
diff --git a/src/wixext/Tuples/FileShareTuple.cs b/src/wixext/Tuples/FileShareTuple.cs index 5a31b6fa..6a04f6af 100644 --- a/src/wixext/Tuples/FileShareTuple.cs +++ b/src/wixext/Tuples/FileShareTuple.cs | |||
@@ -11,13 +11,10 @@ namespace WixToolset.Util | |||
11 | UtilTupleDefinitionType.FileShare.ToString(), | 11 | UtilTupleDefinitionType.FileShare.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.FileShare), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.ShareName), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.ShareName), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.Component_), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.ComponentRef), IntermediateFieldType.String), |
17 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.Description), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.Description), IntermediateFieldType.String), |
18 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.Directory_), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.DirectoryRef), IntermediateFieldType.String), |
19 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.User_), IntermediateFieldType.String), | ||
20 | new IntermediateFieldDefinition(nameof(FileShareTupleFields.Permissions), IntermediateFieldType.Number), | ||
21 | }, | 18 | }, |
22 | typeof(FileShareTuple)); | 19 | typeof(FileShareTuple)); |
23 | } | 20 | } |
@@ -29,13 +26,10 @@ namespace WixToolset.Util.Tuples | |||
29 | 26 | ||
30 | public enum FileShareTupleFields | 27 | public enum FileShareTupleFields |
31 | { | 28 | { |
32 | FileShare, | ||
33 | ShareName, | 29 | ShareName, |
34 | Component_, | 30 | ComponentRef, |
35 | Description, | 31 | Description, |
36 | Directory_, | 32 | DirectoryRef, |
37 | User_, | ||
38 | Permissions, | ||
39 | } | 33 | } |
40 | 34 | ||
41 | public class FileShareTuple : IntermediateTuple | 35 | public class FileShareTuple : IntermediateTuple |
@@ -50,22 +44,16 @@ namespace WixToolset.Util.Tuples | |||
50 | 44 | ||
51 | public IntermediateField this[FileShareTupleFields index] => this.Fields[(int)index]; | 45 | public IntermediateField this[FileShareTupleFields index] => this.Fields[(int)index]; |
52 | 46 | ||
53 | public string FileShare | ||
54 | { | ||
55 | get => this.Fields[(int)FileShareTupleFields.FileShare].AsString(); | ||
56 | set => this.Set((int)FileShareTupleFields.FileShare, value); | ||
57 | } | ||
58 | |||
59 | public string ShareName | 47 | public string ShareName |
60 | { | 48 | { |
61 | get => this.Fields[(int)FileShareTupleFields.ShareName].AsString(); | 49 | get => this.Fields[(int)FileShareTupleFields.ShareName].AsString(); |
62 | set => this.Set((int)FileShareTupleFields.ShareName, value); | 50 | set => this.Set((int)FileShareTupleFields.ShareName, value); |
63 | } | 51 | } |
64 | 52 | ||
65 | public string Component_ | 53 | public string ComponentRef |
66 | { | 54 | { |
67 | get => this.Fields[(int)FileShareTupleFields.Component_].AsString(); | 55 | get => this.Fields[(int)FileShareTupleFields.ComponentRef].AsString(); |
68 | set => this.Set((int)FileShareTupleFields.Component_, value); | 56 | set => this.Set((int)FileShareTupleFields.ComponentRef, value); |
69 | } | 57 | } |
70 | 58 | ||
71 | public string Description | 59 | public string Description |
@@ -74,22 +62,10 @@ namespace WixToolset.Util.Tuples | |||
74 | set => this.Set((int)FileShareTupleFields.Description, value); | 62 | set => this.Set((int)FileShareTupleFields.Description, value); |
75 | } | 63 | } |
76 | 64 | ||
77 | public string Directory_ | 65 | public string DirectoryRef |
78 | { | ||
79 | get => this.Fields[(int)FileShareTupleFields.Directory_].AsString(); | ||
80 | set => this.Set((int)FileShareTupleFields.Directory_, value); | ||
81 | } | ||
82 | |||
83 | public string User_ | ||
84 | { | ||
85 | get => this.Fields[(int)FileShareTupleFields.User_].AsString(); | ||
86 | set => this.Set((int)FileShareTupleFields.User_, value); | ||
87 | } | ||
88 | |||
89 | public int? Permissions | ||
90 | { | 66 | { |
91 | get => this.Fields[(int)FileShareTupleFields.Permissions].AsNullableNumber(); | 67 | get => this.Fields[(int)FileShareTupleFields.DirectoryRef].AsString(); |
92 | set => this.Set((int)FileShareTupleFields.Permissions, value); | 68 | set => this.Set((int)FileShareTupleFields.DirectoryRef, value); |
93 | } | 69 | } |
94 | } | 70 | } |
95 | } \ No newline at end of file | 71 | } \ No newline at end of file |