protected override void Dispose(bool disposing)
{
if (disposing)
{
// release mananged objects
IDbDataAdapter pthis = this; // must cast to interface to obtain correct value
pthis.SelectCommand = null;
pthis.InsertCommand = null;
pthis.UpdateCommand = null;
pthis.DeleteCommand = null;
}
// release unmanaged objects
base.Dispose(disposing); // notify base classes
}