SCM

[#1010225] Add IDisposabe to LargeObject

View Trackers | Support Requests | Download .csv | Monitor

Date:
2008-01-06 15:34
Priority:
3
State:
Open
Submitted by:
Michael Parshin (parshim)
Assigned to:
Nobody (None)
Category:
Group:
Resolution:
None
 
Summary:
Add IDisposabe to LargeObject

Detailed description
Hello, it may be very helpfull to make LargeObject to implement IDisposable in order to use it in using pattern. In addition it may be good idea to make it inherited from Stream.

Thanks.

Followup

Message
Date: 2008-07-01 16:43
Sender: Mathieu Cartoixa

The LargeObject interface seems to have all it takes to be a System.IO.Stream inheritor : Read, Write, Seek...
As a benefit, we would get :
* LargeObject would implement IDisposable : a must have IMHO since you have a Close method.
* consistency with the underlying implementation (excerpt from chapter 31 of PostgreSQL doc : "PostgreSQL has a large object facility, which provides stream-style access to user data").
* the possibility to chain it to other streams (StreamReader or BinaryWriter for instance).

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge