> The Connection property is not guaranteed by the MSDN documentation to
> remain valid after a call to Commit or Rollback.  It's really an internal
> implementation detail.
>
>
> http://msdn.microsoft.com/en-us/library/system.data.idbtransaction.connection.aspx
>
Indeed, I already checked MSDN about that. It just didn't sound logical to
me that Connection is set to null after doing a Commit or Rollback, but
indeed the current implementation uses that fact. So I guess I'll have to
use the following code instead
DbConnection connection = transaction.Connection;
transaction.Rollback();
connection.Close();

Thanks.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to