public DBObject DeepClone(DBObject ownerPointer, IdMapping idMap, bool isPrimary) { createInstance(); DBObject DeepC = BaseDBObject.DeepClone(ownerPointer, idMap, isPrimary); tr.Dispose(); return(DeepC); }