Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Do not use internal when private can be used instead. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | tkt-1f7bfff467 |
Files: | files | file ages | folders |
SHA1: |
5dd4d355c78b5a18423ea9b377af5564 |
User & Date: | mistachkin 2016-10-28 21:17:13.872 |
Context
2016-10-28
| ||
21:19 | Minor correction to the previous check-in. check-in: 597c25de3b user: mistachkin tags: tkt-1f7bfff467 | |
21:17 | Do not use internal when private can be used instead. check-in: 5dd4d355c7 user: mistachkin tags: tkt-1f7bfff467 | |
21:09 | Update master release archive manifest. check-in: 123f40dc30 user: mistachkin tags: tkt-1f7bfff467 | |
Changes
Changes to System.Data.SQLite/SQLiteTransaction.cs.
︙ | ︙ | |||
19 20 21 22 23 24 25 | /// </summary> public sealed class SQLiteTransaction : DbTransaction { /// <summary> /// The connection to which this transaction is bound /// </summary> internal SQLiteConnection _cnn; | > > | > > > > > > > > | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | /// </summary> public sealed class SQLiteTransaction : DbTransaction { /// <summary> /// The connection to which this transaction is bound /// </summary> internal SQLiteConnection _cnn; /// <summary> /// Matches the version of the connection. /// </summary> private int _version; /// <summary> /// The isolation level for this transaction. /// </summary> private IsolationLevel _level; /////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Constructs the transaction object, binding it to the supplied connection /// </summary> /// <param name="connection">The connection to open a transaction on</param> /// <param name="deferredLock">TRUE to defer the writelock, or FALSE to lock immediately</param> internal SQLiteTransaction(SQLiteConnection connection, bool deferredLock) |
︙ | ︙ | |||
224 225 226 227 228 229 230 | /// <summary> /// Issue a ROLLBACK command against the database connection, /// optionally re-throwing any caught exception. /// </summary> /// <param name="throwError"> /// Non-zero to re-throw caught exceptions. /// </param> | | | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | /// <summary> /// Issue a ROLLBACK command against the database connection, /// optionally re-throwing any caught exception. /// </summary> /// <param name="throwError"> /// Non-zero to re-throw caught exceptions. /// </param> private void IssueRollback(bool throwError) { SQLiteConnection cnn = Interlocked.Exchange(ref _cnn, null); if (cnn != null) { int level = cnn._transactionLevel; |
︙ | ︙ | |||
300 301 302 303 304 305 306 | /// </summary> /// <param name="throwError"> /// Non-zero to throw an exception if a state inconsistency is found. /// </param> /// <returns> /// Non-zero if this transaction is valid; otherwise, false. /// </returns> | | | 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 | /// </summary> /// <param name="throwError"> /// Non-zero to throw an exception if a state inconsistency is found. /// </param> /// <returns> /// Non-zero if this transaction is valid; otherwise, false. /// </returns> private bool IsValid(bool throwError) { if (_cnn == null) { if (throwError == true) throw new ArgumentNullException("No connection associated with this transaction"); else return false; } |
︙ | ︙ |