T
Tom
Hello Friends,
Why SqlDataReader is not inherited from
System.ComponentModel.Component?
While every other major class (SqlCommand, SqlConnection,
SqlDataAdapter) from SqlClient namespace is inherited from
System.ComponentModel.Component and supports IComponent
interface.
IComponent enables object-sharing between applications,
while MarshalByRefObject Class (which SqlDataReader
inherits) enables access to objects across application
domain boundaries in applications that support remoting.
Does it means that one can not use SqlDataReader between
applications if they don't support "remoting"?
Can anybody from microsoft explain impact of this design?
And why they select such class hierarchy?
Regards
Tom
Why SqlDataReader is not inherited from
System.ComponentModel.Component?
While every other major class (SqlCommand, SqlConnection,
SqlDataAdapter) from SqlClient namespace is inherited from
System.ComponentModel.Component and supports IComponent
interface.
IComponent enables object-sharing between applications,
while MarshalByRefObject Class (which SqlDataReader
inherits) enables access to objects across application
domain boundaries in applications that support remoting.
Does it means that one can not use SqlDataReader between
applications if they don't support "remoting"?
Can anybody from microsoft explain impact of this design?
And why they select such class hierarchy?
Regards
Tom