aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Msi/View.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Msi/View.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Msi/View.cs22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Msi/View.cs b/src/WixToolset.Core.WindowsInstaller/Msi/View.cs
index d6542824..1beb72da 100644
--- a/src/WixToolset.Core.WindowsInstaller/Msi/View.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Msi/View.cs
@@ -1,11 +1,9 @@
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. 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 2
3namespace WixToolset.Msi 3namespace WixToolset.Core.WindowsInstaller.Msi
4{ 4{
5 using System; 5 using System;
6 using System.ComponentModel;
7 using System.Globalization; 6 using System.Globalization;
8 using WixToolset.Core.Native;
9 7
10 /// <summary> 8 /// <summary>
11 /// Enumeration of different modify modes. 9 /// Enumeration of different modify modes.
@@ -17,27 +15,27 @@ namespace WixToolset.Msi
17 /// keys match an existing row and inserts if they do not match. Fails with a read-only 15 /// keys match an existing row and inserts if they do not match. Fails with a read-only
18 /// database. This mode cannot be used with a view containing joins. 16 /// database. This mode cannot be used with a view containing joins.
19 /// </summary> 17 /// </summary>
20 Assign = MsiInterop.MSIMODIFYASSIGN, 18 Assign = 3, // Writes current data in the cursor to a table row. Updates record if the primary keys match an existing row and inserts if they do not match. Fails with a read-only database. This mode cannot be used with a view containing joins.
21 19
22 /// <summary> 20 /// <summary>
23 /// Remove a row from the table. You must first call the Fetch function with the same 21 /// Remove a row from the table. You must first call the Fetch function with the same
24 /// record. Fails if the row has been deleted. Works only with read-write records. This 22 /// record. Fails if the row has been deleted. Works only with read-write records. This
25 /// mode cannot be used with a view containing joins. 23 /// mode cannot be used with a view containing joins.
26 /// </summary> 24 /// </summary>
27 Delete = MsiInterop.MSIMODIFYDELETE, 25 Delete = 6, // Remove a row from the table. You must first call the MsiViewFetch function with the same record. Fails if the row has been deleted. Works only with read-write records. This mode cannot be used with a view containing joins.
28 26
29 /// <summary> 27 /// <summary>
30 /// Inserts a record. Fails if a row with the same primary keys exists. Fails with a read-only 28 /// Inserts a record. Fails if a row with the same primary keys exists. Fails with a read-only
31 /// database. This mode cannot be used with a view containing joins. 29 /// database. This mode cannot be used with a view containing joins.
32 /// </summary> 30 /// </summary>
33 Insert = MsiInterop.MSIMODIFYINSERT, 31 Insert = 1, // Inserts a record. Fails if a row with the same primary keys exists. Fails with a read-only database. This mode cannot be used with a view containing joins.
34 32
35 /// <summary> 33 /// <summary>
36 /// Inserts a temporary record. The information is not persistent. Fails if a row with the 34 /// Inserts a temporary record. The information is not persistent. Fails if a row with the
37 /// same primary key exists. Works only with read-write records. This mode cannot be 35 /// same primary key exists. Works only with read-write records. This mode cannot be
38 /// used with a view containing joins. 36 /// used with a view containing joins.
39 /// </summary> 37 /// </summary>
40 InsertTemporary = MsiInterop.MSIMODIFYINSERTTEMPORARY, 38 InsertTemporary = 7, // Inserts a temporary record. The information is not persistent. Fails if a row with the same primary key exists. Works only with read-write records. This mode cannot be used with a view containing joins.
41 39
42 /// <summary> 40 /// <summary>
43 /// Inserts or validates a record in a table. Inserts if primary keys do not match any row 41 /// Inserts or validates a record in a table. Inserts if primary keys do not match any row
@@ -45,13 +43,13 @@ namespace WixToolset.Msi
45 /// the table. Fails if there is a record with a duplicate key that is not identical. 43 /// the table. Fails if there is a record with a duplicate key that is not identical.
46 /// Works only with read-write records. This mode cannot be used with a view containing joins. 44 /// Works only with read-write records. This mode cannot be used with a view containing joins.
47 /// </summary> 45 /// </summary>
48 Merge = MsiInterop.MSIMODIFYMERGE, 46 Merge = 5, // Inserts or validates a record in a table. Inserts if primary keys do not match any row and validates if there is a match. Fails if the record does not match the data in the table. Fails if there is a record with a duplicate key that is not identical. Works only with read-write records. This mode cannot be used with a view containing joins.
49 47
50 /// <summary> 48 /// <summary>
51 /// Refreshes the information in the record. Must first call Fetch with the 49 /// Refreshes the information in the record. Must first call Fetch with the
52 /// same record. Fails for a deleted row. Works with read-write and read-only records. 50 /// same record. Fails for a deleted row. Works with read-write and read-only records.
53 /// </summary> 51 /// </summary>
54 Refresh = MsiInterop.MSIMODIFYREFRESH, 52 Refresh = 0, // Refreshes the information in the record. Must first call MsiViewFetch with the same record. Fails for a deleted row. Works with read-write and read-only records.
55 53
56 /// <summary> 54 /// <summary>
57 /// Updates or deletes and inserts a record into a table. Must first call Fetch with 55 /// Updates or deletes and inserts a record into a table. Must first call Fetch with
@@ -59,7 +57,7 @@ namespace WixToolset.Msi
59 /// inserts new if primary keys have changed. Fails with a read-only database. This mode cannot 57 /// inserts new if primary keys have changed. Fails with a read-only database. This mode cannot
60 /// be used with a view containing joins. 58 /// be used with a view containing joins.
61 /// </summary> 59 /// </summary>
62 Replace = MsiInterop.MSIMODIFYREPLACE, 60 Replace = 4, // Updates or deletes and inserts a record into a table. Must first call MsiViewFetch with the same record. Updates record if the primary keys are unchanged. Deletes old row and inserts new if primary keys have changed. Fails with a read-only database. This mode cannot be used with a view containing joins.
63 61
64 /// <summary> 62 /// <summary>
65 /// Refreshes the information in the supplied record without changing the position in the 63 /// Refreshes the information in the supplied record without changing the position in the
@@ -69,13 +67,13 @@ namespace WixToolset.Msi
69 /// query. Seek cannot be used with multi-table queries. This mode cannot be used with 67 /// query. Seek cannot be used with multi-table queries. This mode cannot be used with
70 /// a view containing joins. See also the remarks. 68 /// a view containing joins. See also the remarks.
71 /// </summary> 69 /// </summary>
72 Seek = MsiInterop.MSIMODIFYSEEK, 70 Seek = -1, // Refreshes the information in the supplied record without changing the position in the result set and without affecting subsequent fetch operations. The record may then be used for subsequent Update, Delete, and Refresh. All primary key columns of the table must be in the query and the record must have at least as many fields as the query. Seek cannot be used with multi-table queries. This mode cannot be used with a view containing joins. See also the remarks.
73 71
74 /// <summary> 72 /// <summary>
75 /// Updates an existing record. Non-primary keys only. Must first call Fetch. Fails with a 73 /// Updates an existing record. Non-primary keys only. Must first call Fetch. Fails with a
76 /// deleted record. Works only with read-write records. 74 /// deleted record. Works only with read-write records.
77 /// </summary> 75 /// </summary>
78 Update = MsiInterop.MSIMODIFYUPDATE 76 Update = 2, // Updates an existing record. Nonprimary keys only. Must first call MsiViewFetch. Fails with a deleted record. Works only with read-write records.
79 } 77 }
80 78
81 /// <summary> 79 /// <summary>