/// <summary> /// Destroy all the resources that are associated with the object /// </summary> public void Dispose() { if (OnContext != null) { OnContext.Dispose(); OnContext = null; } }