protected virtual void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { // free other managed objects that implement // IDisposable only if (OVdata != null) { OVdata.Dispose(); } } // release any unmanaged objects // set the object references to null OVdata = null; disposed = true; }
void LoadOVData() { OVdata = new OpenVGDBEntities(); OVdata.VGDBPlatforms.Load(); OVdata.VGDBReleaseS.Load(); OVdata.VGDBROMS.Load(); OVdata.VGDBREGIONS.Load(); }