System.Data.SQLite

Check-in [85f27cc9f8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Raise the static OnChanged event for the connection when a data reader is created.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | onChanged
Files: files | file ages | folders
SHA1: 85f27cc9f8d10d351e3ec6c2144fd43db46ecb86
User & Date: mistachkin 2013-08-29 23:00:02.381
Context
2013-09-04
03:42
Allow monitoring of the creation of all critical handle derived class instances. check-in: b194408bb5 user: mistachkin tags: onChanged
2013-08-29
23:00
Raise the static OnChanged event for the connection when a data reader is created. check-in: 85f27cc9f8 user: mistachkin tags: onChanged
09:08
Update SQLite core library to the latest trunk. check-in: fec273cc1d user: mistachkin tags: trunk
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/SQLiteConnection.cs.
Changes to System.Data.SQLite/SQLiteConvert.cs.
1294
1295
1296
1297
1298
1299
1300





1301
1302
1303
1304

1305
1306
1307
1308
1309

1310
1311
1312
1313
1314
1315
1316
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308

1309
1310
1311
1312
1313

1314
1315
1316
1317
1318
1319
1320
1321







+
+
+
+
+



-
+




-
+







      EnlistTransaction = 6,

      /// <summary>
      /// A command was created using the connection.
      /// </summary>
      NewCommand = 7,

      /// <summary>
      /// A data reader was created using the connection.
      /// </summary>
      NewDataReader = 8,

      /// <summary>
      /// The connection is being closed.
      /// </summary>
      Closing = 8,
      Closing = 9,

      /// <summary>
      /// The connection was closed.
      /// </summary>
      Closed = 9
      Closed = 10
  }

  /// <summary>
  /// This implementation of SQLite for ADO.NET can process date/time fields in databases in only one of three formats.  Ticks, ISO8601
  /// and JulianDay.
  /// </summary>
  /// <remarks>
Changes to System.Data.SQLite/SQLiteDataReader.cs.
101
102
103
104
105
106
107





108


109
110
111
112
113
114
115
101
102
103
104
105
106
107
108
109
110
111
112

113
114
115
116
117
118
119
120
121







+
+
+
+
+
-
+
+







      _baseSchemaName = _command.Connection._baseSchemaName;

      _commandBehavior = behave;
      _activeStatementIndex = -1;
      _rowsAffected = -1;

      if (_command != null)
      {
          SQLiteConnection.OnChanged(_command.Connection,
              new ConnectionEventArgs(SQLiteConnectionEventType.NewDataReader,
                  null, null, _command, null, new object[] { this, behave }));

        NextResult();
          NextResult();
      }
    }

    ///////////////////////////////////////////////////////////////////////////////////////////////

    #region IDisposable "Pattern" Members
    private bool disposed;
    private void CheckDisposed() /* throw */