2002-11-07 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / System.Data / System.Data.Common / RowUpdatedEventArgs.cs
1 //
2 // System.Data.Common.RowUpdatedEventArgs.cs
3 //
4 // Author:
5 //   Rodrigo Moya (rodrigo@ximian.com)
6 //   Tim Coleman (tim@timcoleman.com)
7 //
8 // (C) Ximian, Inc
9 // Copyright (C) Tim Coleman, 2002
10 //
11
12 using System.Data;
13
14 namespace System.Data.Common {
15         public abstract class RowUpdatedEventArgs : EventArgs
16         {
17                 #region Fields
18
19                 DataRow dataRow;
20                 IDbCommand command;
21                 StatementType statementType;
22                 DataTableMapping tableMapping;  
23                 Exception errors;
24                 UpdateStatus status;
25                 int recordsAffected;
26
27                 #endregion // Fields
28
29                 #region Constructors
30
31                 [MonoTODO]
32                 protected RowUpdatedEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) 
33                 {
34                         this.dataRow = dataRow;
35                         this.command = command;
36                         this.statementType = statementType;
37                         this.tableMapping = tableMapping;
38                         this.errors = null;
39                         this.status = UpdateStatus.Continue;
40                         this.recordsAffected = 0; // FIXME
41                 }
42
43                 #endregion // Constructors
44
45                 #region Properties
46                 
47                 [MonoTODO]
48                 public IDbCommand Command {
49                         get { return command; }
50                 }
51
52                 [MonoTODO]
53                 public Exception Errors {
54                         get { return errors; }
55                         set { errors = value; }
56                 }
57
58                 [MonoTODO]
59                 public int RecordsAffected {
60                         get { return recordsAffected; }
61                 }
62
63                 [MonoTODO]
64                 public DataRow Row {
65                         get { return dataRow; }
66                 }
67
68                 [MonoTODO]
69                 public StatementType StatementType {
70                         get { return statementType; }
71                 }
72
73                 [MonoTODO]
74                 public UpdateStatus Status {
75                         get { return status; }
76                         set { status = value; }
77                 }
78
79                 [MonoTODO]
80                 public DataTableMapping TableMapping {
81                         get { return tableMapping; }
82                 }
83
84                 #endregion // Properties
85         }
86 }